-- Constants
INVALID_THREAD_HANDLE = -1
INVALID_WEAPON_UNIQUE_ID = -1
INVALID_WEAPON_INVENTORY_SLOT = 0 -- This is 0 because we're starting from 1 for Lua
INVALID_NANO_INVENTORY_SLOT = 0 -- This is 0 because we're starting from 1 for Lua
INVALID_VDO_HANDLE = -1
TYPE_BUTTON = 0
TYPE_TOGGLE = 1
TYPE_SLIDER = 2
TYPE_ROW = 3
TYPE_REMAP = 4 --PC-only shortcut remapping
TYPE_TOGGLE_COLOR = 5 --Color
TYPE_HEADER = 6
TYPE_LINE_BREAK = 7
TYPE_PIP = 8
SCALE_STD_RES = 0.67
ALIGN_DEFAULT = 0
ALIGN_LEFT = 1
ALIGN_CENTER = 2
ALIGN_RIGHT = 3
ANIMATED_BITMAP_PLAYBACK_TYPE_LOOPING = 0
ANIMATED_BITMAP_PLAYBACK_TYPE_PING_PONG = 1
ANIMATED_BITMAP_PLAYBACK_TYPE_PLAY_ONCE = 2
ANIMATED_BITMAP_PLAYBACK_TYPE_PLAY_RANDOM = 3
LIST_BUTTON_SPACE = 3
LIST_BUTTON_SPACING = 46
LIST_BUTTON_HEIGHT = 40
LIST_HIGHLIGHT_HEIGHT = 10
LIST_BUTTON_TEXT_X = 48
LIST_TOGGLE_OFFSET = 0.75
LIST_SLIDER_OFFSET = 0.25
LIST_FONT_SCALE = 0.8
SCROLLBAR_WIDTH = 10
DEG_TO_RAD = 0.01745329252 -- PI/180
--setup global colors
--Pause Menu Colors
COLOR_PM_BAR = {R = 208/255, G = 74/255; B = 146/255}
COLOR_SAINTS_PURPLE = {R=255/255, G=147/255, B=42/255}
COLOR_LIST_LOST_FOCUS = {R=100/255, G=100/255, B=100/255}
COLOR_STORE_WEAPON_PRIMARY = {R=255/255, G=147/255, B=42/255}
COLOR_STORE_WEAPON_SECONDARY = {R=170/255, G=170/255, B=170/255}
COLOR_STORE_WEAPON_TERTIARY = {R=97/255, G=100/255, B=102/255}
COLOR_STORE_VEHICLE_PRIMARY = {R=204/255, G=204/255, B=204/255}
COLOR_STORE_VEHICLE_SECONDARY = {R=170/255, G=170/255, B=170/255}
COLOR_STORE_VEHICLE_TERTIARY = {R=97/255, G=100/255, B=102/255}
COLOR_PLAYER_CREATION_PRIMARY = {R=177/255, G=118/255, B=10/255}
COLOR_PLAYER_CREATION_SECONDARY = {R=170/255, G=170/255, B=170/255}
COLOR_PLAYER_CREATION_TERTIARY = {R=97/255, G=100/255, B=102/255}
COLOR_STORE_CHARACTER_PRIMARY = {R=72/255, G=165/255, B=206/255}
COLOR_STORE_CHARACTER_SECONDARY = {R=170/255, G=170/255, B=170/255}
COLOR_STORE_CHARACTER_TERTIARY = {R=97/255, G=100/255, B=102/255}
COLOR_CELL_MENU_HIGHLIGHT_TEXT = {R=220/255,G=220/255,B=220/255}
COLOR_CELL_MENU_HIGHLIGHT_BTN = {R=146/255, G=143/255, B=225/255}
COLOR_CELL_MENU_UNHIGHLIGHT_TEXT = {R=120/255,G=120/255,B=120/255}
COLOR_CELL_MENU_UNHIGHLIGHT_BTN = {R=54/255, G=52/255, B=123/255}
COLOR_CELL_MENU_UNHIGHLIGHT_BTN_SHADOW = {R=31/255, G=32/255, B=71/255}
COLOR_CELL_CACHE_METER_ID_CASH = {R=0, G=0, B=0}
COLOR_CELL_CACHE_METER_ID_ELSE = {R=219, G=219, B=219}
COLOR_CELL_CACHE_METER_FILL = {R=220/255, G=220/255, B=220/255}
COLOR_CHEATS_PRIMARY = {R=255/255, G=147/255, B=42/255}
COLOR_CHEATS_SECONDARY = {R=170/255, G=170/255, B=170/255}
COLOR_STORE_REWARDS_PRIMARY = {R=255/255, G=147/255, B=42/255}
COLOR_STORE_REWARDS_SECONDARY = {R=170/255, G=170/255, B=170/255}
COLOR_STORE_REWARDS_TERTIARY = {R=90/255, G=90/255, B=90/255}
COLOR_STORE_REWARDS_UNHIGHLIGHTED = {R=120/255, G=120/255, B=120/255}
COLOR_STORE_CLOTHING_SECONDARY = {R=170/255, G=170/255, B=170/255}
COLOR_STORE_CLOTHING_TERTIARY = {R=97/255, G=100/255, B=102/255}
COLOR_STORE_LETS_PRETEND_PRIMARY = {R=64/255, G=184/255, B=33/255}
COLOR_STORE_LETS_PRETEND_SECONDARY = {R=170/255, G=170/255, B=170/255}
COLOR_STORE_LETS_PRETEND_TERTIARY = {R=97/255, G=100/255, B=102/255}
COLOR_STORE_LETS_PRETEND_PINK = {R=208/255, G=74/255, B=146/255}
COLOR_STORE_LACE_PRIMARY = {R=208/255, G=75/255, B=146/255}
COLOR_STORE_NOBODY_PRIMARY = {R=22/255, G=136/255, B=198/255}
COLOR_STORE_PLANET_PRIMARY = {R=227/255, G=38/255, B=0/255}
COLOR_STORE_IMPRESSIONS_PRIMARY = {R=153/255, G=128/255, B=77/255}
COLOR_STORE_CRIB_PRIMARY = {R=119/255, G=172/255, B=224/255}
COLOR_STORE_CRIB_SECONDARY = {R=170/255, G=170/255, B=170/255}
COLOR_STORE_CRIB_TERTIARY = {R=90/255, G=90/255, B=90/255}
COLOR_STORE_CRIB_UNHIGHLIGHTED = {R=120/255, G=120/255, B=120/255}
COLOR_BG_DIGITS_PAUSE = {R=0/255, G=45/255, B=91/255}
COLOR_BG_DIGITS_VIDEO = {R=0/255, G=73/255, B=148/255}
COLOR_BG_DIGITS_FAIL = {R=45/255, G=45/255, B=45/255}
COLOR_CAT_MOUSE_TITLE_LOSE = {R=170/255, G=0/255, B=1/255}
COLOR_CAT_MOUSE_TITLE_TIE = {R=159/255, G=162/255, B=164}
COLOR_RESPECT_METER = {R=148/255, g=0/255, B=197/255}
COLOR_RESPECT_METER_HIGHLIGHT = {R=165/255, g=0/255, B=219/255}
COLOR_TARGET_KILL = {R=204/255, G=34/255, B=0}
COLOR_TARGET_DEFEND = {R=101/255, G=178/255, B=76/255}
COLOR_TARGET_USE = {R=246/255, G=187/255, B=79/255}
COLOR_TARGET_REVIVE = {R=148/255, G=0/255, B=197/255}
COLOR_TARGET_LOCATION = {R=25/255, G=157/255, B=229/255}
COLOR_TARGET_COOP = {R=148/255, g=0/255, B=197/255}
COLOR_TARGET_HITMAN = {R=220/255, G=220/255, B=220/255}
COLOR_TARGET_CHOPSHOP = {R=255/255, G=255/255, B=255/255}
COLOR_TARGET_SYNDICATE = {R=208/255, G=74/255, B=146/255}
COLOR_TARGET_SAINTS = {R=148/255, G=0/255, B=197/255}
COLOR_TARGET_GRENADE = {R=220/255, G=220/255, B=220/255}
COLOR_TARGET_GT_HUMAN = {R=0, G=200/255, B=0}
COLOR_TARGET_GT_MOVER = {R=200/255, G=50, B=100/255}
COLOR_TARGET_GT_VEHICLE = {R=50, G=100, B=255/255}
COLOR_TARGET_CID = {R=220/255, G=146/255, B=0}
COLOR_POWER_TELE = {R = 162/255, G = 221/255, B = 63/255}
COLOR_POWER_POUND = {R = 238/255, G = 105/255, B = 10/255}
COLOR_POWER_BUFF = {R = 238/255, G = 174/255, B = 48/255}
COLOR_POWER_BLAST = {R = 177/255, G = 40/255, B = 223/255}
COLOR_POWER_MOVE = {R = 53/255, G = 133/255, B = 241/255}
COLOR_CMP_FAIL = {R=190/255, G=32/255, B=0/255}
COLOR_CMP_BG_MISSION = {R=220/255, G=115/255, B=29/255}
COLOR_CMP_BG_MISSION_SWISH = { R=255/255, G=147/255, B=42/255}
COLOR_CMP_BG_ACTIVITY = {R=74/255, G=12/255, B=12/255}
COLOR_CMP_BG_ACTIVITY_SWISH = {R=155/255, G=24/255, B=24/255}
COLOR_COL_CELL_ROTATE = {R=30/255, G=130/255, B=230/255}
COLOR_CREDITS_TEXT_RED = {R=220/255, G=37/255, B=0/255}
COLOR_CREDITS_TEXT_GOLD = {R=209/255, G=196/255, B=129/255}
COLOR_FIGHTCLUB_BOSS_BG = {R=180/255, G=64/255, B=33/255}
COLOR_HUD_RADIO_NAME = {R=255/255, G=255/255, B=255/255}
COLOR_HUD_RADIO_ICON = {R=148/255, G=0/255, B=197/255}
COLOR_HUD_WEAPON_RECHARGE_TEXT = {R=220/255, G=37/255, B=0/255}
COLOR_HUD_WEAPON_DESCRIPT_TEXT = {R=220/255, G=220/255, B=220/255}
COLOR_HUD_COLLECTION_DEFAULT = {R=225/255, G=147/255, B=0/255}
COLOR_HUD_COLLECTION_BRONZE_BG = {R=151/255, G=107/255, B=59/255}
COLOR_HUD_COLLECTION_BRONZE_TEXT = {R=200/255, G=100/255, B=61/255}
COLOR_HUD_COLLECTION_SILVER_BG = {R=67/255, G=61/255, B=104/255}
COLOR_HUD_COLLECTION_SILVER_TEXT = {R=106/255, G=106/255, B=124/255}
COLOR_HUD_COLLECTION_GOLD_BG = {R=150/255, G=118/255, B=34/255} --TEXT was set to be the same
COLOR_HUD_NOTO_FULL_SECTION = {R=220/255, G=0, B=0}
COLOR_HUB_NOTO_RISING_SECTION = {R=100/255, G=0, B=0}
TWEEN_STATE_IDLE = 0
TWEEN_STATE_RUNNING = 1
TWEEN_STATE_PAUSED = 2
TWEEN_STATE_DISABLED = 3
TWEEN_STATE_FINISHED = 4
HUD_DISPOSITION_FRIENDLY = 0
HUD_DISPOSITION_ENEMY = 1
HUD_DISPOSITION_NEUTRAL = 2
HUMAN_TEAM_NONE = -1
HUMAN_TEAM_GUERILLA = 0
HUMAN_TEAM_EDF = 1
HUMAN_TEAM_CIVILIAN = 2
HUMAN_TEAM_MP_NEUTRAL = 2
HUMAN_TEAM_MARAUDER = 3
HUMAN_TEAM_MP_SPECTATOR = 3
COLOR_CONTROL = {R=0.58,G=0.05,B=0}
COLOR_MORALE = {R=0.943,G=0.78,B=0.20}
COLOR_PING_RED = {R=171/255, G=47/255, B=15/255}
COLOR_PING_YELLOW = {R=218/255, G=199/255, B=17/255}
COLOR_PING_GREEN = {R=113/255, G=175/255, B=21/255}
COLOR_PING_GREY = {R=190/255, G=190/255, B=190/255}
--HVS_JPM[KING] 12/11/2014: added a couple new values for the Invite friends screen
-- ONLINE_SELECTED and UNSELECTED need to be changed to reflect SR4 color scheme
COLOR_ONLINE_UNSELECTED = {R=234/255, G=141/255, B=78/255}
COLOR_ONLINE_SELECTED = {R=124/255, G=69/255, B=28/255}
COLOR_JOINABLE_UNSELECTED = {R=255/255, G=255/255, B=255/255}
COLOR_JOINABLE_SELECTED = {R=0/255, G=0/255, B=0/255}
INVENTORY_DPAD_THRESHOLD = .25 --The dpad is analog on PS3 so we can set the threshold with this.
-- Sound IDS. Use these with "play_ui_sound" gameside Lua function to play any sounds.
-- If you want to add to these, you need to update the UIS_ enums in gameaudio.cpp, as well as the gameside
-- functions that map the UIS_ enum values to sound IDs and the code that loads these IDs, as well as possibly
-- the table file that the event names are loaded from (game_audio.xtbl) and the global cue IDs list.
SOUND_SLIDER_ADD = ""
SOUND_SLIDER_SUBTRACT = ""
SOUND_INPUT_CONFIRM = "INT_SELECT"
SOUND_INPUT_A = SOUND_INPUT_CONFIRM -- Confirm
SOUND_INPUT_CANCEL = "INT_BACK"
SOUND_INPUT_B = SOUND_INPUT_CANCEL -- Cancel/Back
SOUND_INPUT_MISC = ""
SOUND_INPUT_X = SOUND_INPUT_MISC
SOUND_INPUT_OTHER = ""
SOUND_INPUT_Y = SOUND_INPUT_OTHER
SOUND_SCROLL_UP = "INT_TOGGLE_UD" -- Dpad stuff
SOUND_SCROLL_DOWN = "INT_TOGGLE_UD" -- Dpad stuff
SOUND_SCROLL_LEFT = "INT_TOGGLE_UD" -- Dpad stuff
SOUND_SCROLL_RIGHT = "INT_TOGGLE_UD" -- Dpad stuff
SOUND_BUMPER_RIGHT = "INT_TRIGGER" -- Use these
SOUND_BUMPER_LEFT = "INT_TRIGGER" -- Use these
SOUND_TRIGGER_RIGHT = "INT_TRIGGER" -- Use these
SOUND_TRIGGER_LEFT = "INT_TRIGGER" -- Use these
SOUND_INPUT_INVALID = "INT_ERROR" -- Option does not exist
SOUND_LEFT_STICK_PRESS = ""
SOUND_RIGHT_STICK_PRESS = ""
SOUND_DPAD_UP = "INT_TOGGLE_UD"
SOUND_DPAD_DOWN = "INT_TOGGLE_UD"
SOUND_DPAD_RIGHT = "INT_TOGGLE_UD"
SOUND_DPAD_LEFT = "INT_TOGGLE_UD"
SOUND_AMBIENT_ADJUST = ""
SOUND_MUSIC_VOLUME_ADJUST = ""
SOUND_SFX_VOLUME_ADJUST = ""
SOUND_VOICE_VOLUME_ADJUST = ""
SOUND_OVERALL_VOLUME_ADJUST = ""
SOUND_WEAPON_RADIAL_OPEN = 26 -- Open weapons
SOUND_WEAPON_RADIAL_CLOSE = 27 -- Close weapons
SOUND_WEAPON_RADIAL_HIGHLIGHT_NEW_WEAPON = 28 -- Move the cursor on the weapon
SOUND_WEAPON_RADIAL_SELECT_WEAPON = 29 -- Pick weapon on radial
SOUND_NANOFORGE_RADIAL_OPEN = 30 -- Open nano
SOUND_NANOFORGE_RADIAL_CLOSE = 31 -- Close nano
SOUND_NANOFORGE_RADIAL_HIGHLIGHT_NEW_ABILITY = 32 -- Move cursor on nano
SOUND_WEAPON_UPGRADE_SCROLL_UP = 33
SOUND_WEAPON_UPGRADE_SCROLL_DOWN = 34
SOUND_WEAPON_UPGRADE_SELECT_UPGRADE = 35
SOUND_WEAPON_UPGRADE_HIGHLIGHT_NEW_UPGRADE = 36
SOUND_WEAPON_UPGRADE_PURCHASE_STANDARD_UPGRADE = 37
SOUND_WEAPON_UPGRADE_PURCHASE_SUPER_UPGRADE = 38
SOUND_WEAPON_UPGRADE_SCREEN_OPEN = 39
SOUND_WEAPON_UPGRADE_SCREEN_CLOSE = 40
SOUND_PAUSE_MENU_OPEN = 43
-- next unused number: 44
-- Global Return Screen Values
Global_last_tier = 1
Global_last_option = 1
Global_last_pause_tier = 1
Global_last_pause_option = 1
Global_last_lobby_tier = 1
Global_last_lobby_option = 1
Global_matchmaking_level_id = 0
Global_matchmaking_difficulty_id = -1
--SUPERPOWERS
POWERS_ELEMENTS_ENUMS = {
[-1] = {bitmap = "", large_bitmap = "", label = ""}, --NONE,
[0] = {bitmap = "ui_element_sm_imp", large_bitmap = "ui_element_imp", label = "UNL_ELE_TK_FORCE", short_label = "ELE_SUMMON_IMP"}, --PLAYER_SUPERPOWER_SUMMON_IMP,
[1] = {bitmap = "ui_element_sm_tower", large_bitmap = "ui_element_tower", label = "UNL_ELE_TK_LIGHTNING", short_label = "ELE_SUMMON_TOWER"}, --PLAYER_SUPERPOWER_SUMMON_TOWER,
[2] = {bitmap = "ui_element_sm_titan", large_bitmap = "ui_element_titan", label = "UNL_ELE_SUMMON_TITAN", short_label = "ELE_SUMMON_TITAN"}, --PLAYER_SUPERPOWER_SUMMON_TITAN,
[3] = {bitmap = "ui_element_sm_force", large_bitmap = "ui_element_force", label = "UNL_ELE_STOMP_FORCE", short_label = "ELE_STOMP_FORCE"}, --PLAYER_SUPERPOWER_STOMP_FORCE,
[4] = {bitmap = "ui_element_sm_vacuum", large_bitmap = "ui_element_vacuum", label = "UNL_ELE_STOMP_VACUUM", short_label = "ELE_STOMP_VACUUM"}, --PLAYER_SUPERPOWER_STOMP_VACUUM,
[5] = {bitmap = "ui_element_sm_flash", large_bitmap = "ui_element_flash", label = "UNL_ELE_STOMP_FLASH", short_label = "ELE_STOMP_FLASH"}, --PLAYER_SUPERPOWER_STOMP_FLASH,
[6] = {bitmap = "ui_element_sm_stone", large_bitmap = "ui_element_stone", label = "UNL_ELE_BLAST_STONE", short_label = "ELE_BLAST_STONE"}, --PLAYER_SUPERPOWER_BLAST_STONE,
[7] = {bitmap = "ui_element_sm_soul", large_bitmap = "ui_element_soul", label = "UNL_ELE_BLAST_SOUL", short_label = "ELE_BLAST_SOUL"}, --PLAYER_SUPERPOWER_BLAST_SOUL,
[8] = {bitmap = "ui_element_sm_shadow", large_bitmap = "ui_element_shadow", label = "UNL_ELE_BLAST_SHADOW", short_label = "ELE_BLAST_SHADOW"}, --PLAYER_SUPERPOWER_BLAST_SHADOW,
[9] = {bitmap = "ui_element_sm_coldfire", large_bitmap = "ui_element_coldfire", label = "UNL_ELE_AURA_COLDFIRE", short_label = "ELE_AURA_COLDFIRE"}, --PLAYER_SUPERPOWER_BUFF_COLDFIRE,
[10] = {bitmap = "ui_element_sm_vamp", large_bitmap = "ui_element_vamp", label = "UNL_ELE_AURA_VAMP", short_label = "ELE_AURA_VAMP"}, --PLAYER_SUPERPOWER_BUFF_VAMP,
[11] = {bitmap = "ui_element_sm_worship", large_bitmap = "ui_element_worship", label = "UNL_ELE_AURA_WORSHIP", short_label = "ELE_AURA_WORSHIP"}, --PLAYER_SUPERPOWER_BUFF_WORSHIP,
-- [12] = {bitmap = "ui_element_sm_imp", large_bitmap = "ui_element_imp", label = "UNL_ELE_TK_FORCE", short_label = "ELE_TK_FORCE"}, --PLAYER_SUPERPOWER_TK_FORCE,
-- [13] = {bitmap = "ui_element_sm_tower", large_bitmap = "ui_element_tower", label = "UNL_ELE_TK_LIGHTNING", short_label = "ELE_TK_LIGHTNING"}, --PLAYER_SUPERPOWER_TK_LIGHTNING,
-- [14] = {bitmap = "ui_element_sm_vamp", large_bitmap = "ui_element_vamp", label = "UNL_ELE_TK_LIFE_STEAL", short_label = "ELE_TK_LIFE_STEAL"}, --PLAYER_SUPERPOWER_TK_LIFE_STEAL,
--dlc explosive element
[12] = {bitmap = "ui_element_sm_explode", large_bitmap = "ui_element_explode", label = "DLC5_SUPER_TK_NAME", short_label = "DLC5_SUPER_TK_UI"}, --PLAYER_SUPERPOWER_TK_EXPLODE,
[13] = {bitmap = "ui_element_sm_explode", large_bitmap = "ui_element_explode", label = "DLC5_SUPER_STOMP_NAME", short_label = "DLC5_SUPER_STOMP_UI"}, --PLAYER_SUPERPOWER_STOMP_EXPLODE,
[14] = {bitmap = "ui_element_sm_explode", large_bitmap = "ui_element_explode", label = "DLC5_SUPER_BLAST_NAME", short_label = "DLC5_SUPER_BLAST_UI"}, --PLAYER_SUPERPOWER_BLAST_EXPLODE,
[15] = {bitmap = "ui_element_sm_explode", large_bitmap = "ui_element_explode", label = "DLC5_SUPER_BUFF_NAME", short_label = "DLC5_SUPER_BUFF_UI"}, --PLAYER_SUPERPOWER_BUFF_EXPLODE,
--dlc bling element
[16] = {bitmap = "ui_element_sm_bling", large_bitmap = "ui_element_bling", label = "DLC6_SUPER_TK_NAME", short_label = "DLC6_SUPER_TK_UI"}, --PLAYER_SUPERPOWER_TK_BLING,
[17] = {bitmap = "ui_element_sm_bling", large_bitmap = "ui_element_bling", label = "DLC6_SUPER_STOMP_NAME", short_label = "DLC6_SUPER_STOMP_UI"}, --PLAYER_SUPERPOWER_STOMP_EBLING,
[18] = {bitmap = "ui_element_sm_bling", large_bitmap = "ui_element_bling", label = "DLC6_SUPER_BLAST_NAME", short_label = "DLC6_SUPER_BLAST_UI"}, --PLAYER_SUPERPOWER_BLAST_BLING,
[19] = {bitmap = "ui_element_sm_bling", large_bitmap = "ui_element_bling", label = "DLC6_SUPER_BUFF_NAME", short_label = "DLC6_SUPER_BUFF_UI"}, --PLAYER_SUPERPOWER_BUFF_BLING,
-- wing elements
[20] = {bitmap = "Ui_reward_dlc_wings", large_bitmap = "Ui_reward_dlc_wings", label = "UNL_GLIDE_WINGS", short_label = "UNL_GLIDE_WINGS"}, --DEFAULT_WINGS,
[21] = {bitmap = "Ui_reward_dlc_wings", large_bitmap = "Ui_reward_dlc_wings", label = "UNL_DLC_PREORDER_SAINTS_WINGS", short_label = "UNL_DLC_PREORDER_SAINTS_WINGS"}, --SAINT_WINGS,
}
function multi_player_lobby_reset()
Global_last_lobby_tier = 1
Global_last_lobby_option = 1
Global_matchmaking_level_id = 0
Global_matchmaking_difficulty_id = -1
end
--[[
Removing all references to this (JMH 6/17/2010)
function vint_set_child_tween_target_handle()
--
end
]]
--[[
Removing all references to this (JMH 6/17/2010)
function vint_set_child_tween_state()
--
end
]]
function play_ui_sound()
end
local UI_test_sound_h = nil
-- sound == nil means to stop
function ui_test_rtpc(sound, rtpc, value)
if UI_test_sound_h then
game_audio_stop(UI_test_sound_h)
UI_test_sound_h = nil
end
if sound then
UI_test_sound_h = game_UI_audio_play(sound)
game_audio_set_rtpc(UI_test_sound_h, rtpc, value)
end
end