Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

New UI modding features

lefreutlefreut Member Posts: 1,462
edited August 2019 in The 2.5 Update Beta
***

Post edited by lefreut on
JuliusBorisovDoubledimasAndreaColomboGusindaPeccaGrammarsaladAdulKilivitz

Comments

  • lefreutlefreut Member Posts: 1,462
    edited August 2019
    ***

    Post edited by lefreut on
    AdulJuliusBorisovPeccaKilivitz
  • argent77argent77 Member Posts: 2,809
    Infinity_SetHighlightColors() can be used to change the appearance of selected elements in the options screens. The parameters are indeed 3 sets of colors for left, center and right side of the selected element. Colors are interpolated to generate a gradient. The fourth argument of each color set defines alpha (0=transparent, 255=opaque). The first three arguments are apparently used to define the actual color, but they are not simple RGB triplets.

    Example:
    Infinity_SetHighlightColors(0x7F,0x00,0x7F,0xff, 0x00,0x7F,0x00,0xff, 0x00,0x00,0x7F,0xff)


    Btw, is there a comprehensive list of all the Infinity_XXX() functions available somewhere?

    lefreutPecca
  • lefreutlefreut Member Posts: 1,462
    edited August 2019
    ***

    Post edited by lefreut on
  • argent77argent77 Member Posts: 2,809
    I've tried to compile a list of all Infinity_XXX() function I could find by scanning game executables and the various lua and menu files, but there are still many unknown or unclear parameters and return values. There are no function descriptions either, but many function names are (more or less) self-explanatory.
    [spoiler]Infinity_ActivateInventory() -> void Infinity_ActivateRecord(index) -> void Infinity_AddDLC(string1,string2,int1,int2,string3,string4) -> void Infinity_AddDLCContent(string,int) -> void Infinity_CanCloudSave() -> boolean Infinity_CanLevelUp(index) -> boolean Infinity_ChangeOption(option_id,value,panel_id) -> void Infinity_CheckItemIdentify(item_id) -> void Infinity_ClickItem(???) -> ??? Infinity_ClickObjectInWorld(???) -> ??? Infinity_ClickScreen(???) -> ??? Infinity_ClickWorldAt(???) -> ??? Infinity_CloseEngine(???) -> ??? Infinity_DestroyAnimation(???) -> ??? Infinity_DisplayString(???) -> ??? Infinity_DoFile(filename) -> void Infinity_EnterEdit(???) -> ??? Infinity_FetchString(strref) -> string Infinity_FindItemWithBam(???) -> ??? Infinity_FindItemWithText(???) -> ??? Infinity_FindUIItemByName(element_name) -> ref Infinity_FocusTextEdit(element_name) -> void Infinity_GetArea(element_name) -> x,y,w,h Infinity_GetClockTicks() -> int Infinity_GetContainerItemDescription(item_index) -> string Infinity_GetContentHeight(font,w,string,font_size,int,zoom) -> int Infinity_GetCurrentGroundPage() -> int Infinity_GetCurrentMovie(???) -> ??? Infinity_GetCurrentScreenName(???) -> ??? Infinity_GetFilesOfType(extension) -> list Infinity_GetFrameCounter() -> int Infinity_GetGameTicks() -> int Infinity_GetGroundItemDescription(item_index,slot_id,container_id) -> string Infinity_GetGroupItemDescription(item_index) -> string Infinity_GetInCutsceneMode(???) -> ??? Infinity_GetINIString(section_name,value_name,default_value) -> string Infinity_GetINIValue(section_name,value_name,default_value) -> int Infinity_GetListHeight(list_name) -> int Infinity_GetMaxChapterPage() -> int Infinity_GetMaxGroundPage() -> int Infinity_GetMenuArea(menu_name) -> x,y,w,h Infinity_GetMenuItemByName(???) -> ??? Infinity_GetMousePosition() -> x,y Infinity_GetNumCharacters() -> int Infinity_GetOffset(menu_name) -> x,y // TBC Infinity_GetOption(option_id,panel_id) -> int Infinity_GetPasswordRequired(id) -> void Infinity_GetPortraitTooltip(index) -> string Infinity_GetScreenSize() -> w,h Infinity_GetScriptVarInt(name) -> int Infinity_GetScrollIdentifyEnabled(item_id) -> boolean Infinity_GetSelectedCharacterName() -> string Infinity_GetSpellIdentifyEnabled(item_id) -> boolean Infinity_GetTimeString() -> string Infinity_GetTransitionInProgress(???) -> ??? Infinity_GetUseButtonText(item_id,mode) -> string Infinity_GooglePlaySignedIn() -> int Infinity_HighlightJournalButton() -> void Infinity_HoverMouseOver(???) -> ??? Infinity_HoverMouseOverObject(???) -> ??? Infinity_InstanceAnimation(string,resref,x,y,w,h,list,list_index) -> void Infinity_IsItemEnabled(???) -> ??? Infinity_IsMenuOnStack(menu_name) -> boolean Infinity_IsPlayerMoving(???) -> ??? Infinity_JoinMultiplayerGame(id) -> void Infinity_LaunchURL(???) -> ??? Infinity_LevelUp(index) -> ??? Infinity_Log(msg) -> void Infinity_LookAtObjectInWorld(???) -> ??? Infinity_LuaConsoleInput(???,???) -> void Infinity_OnAddUserEntry(string) -> void Infinity_OnCharacterImportItemSelect(table_index) -> void Infinity_OnCharacterItemSelect(table_index) -> void Infinity_OnEditUserEntry(string1,string2) Infinity_OnGroundPage(increment) -> void Infinity_OnPortraitDblClick(index) -> void Infinity_OnPortraitItemSelect(???) -> ??? Infinity_OnPortraitLClick(index) -> void Infinity_OnPortraitRClick(index) -> void Infinity_OnRemoveUserEntry(string) -> void Infinity_OnRest(???) -> ??? Infinity_OnScriptItemSelect(table_index) -> void Infinity_OnScrollIdentify(item_id) -> void Infinity_OnSoundItemSelect(table_index) -> void Infinity_OnSpellIdentify(item_id) -> void Infinity_OnUseButtonClick(item_id,mode) -> void Infinity_OpenInventoryContainer(resref) -> void Infinity_PlayMovie(movie_name,element_name) -> void Infinity_PlaySound(resref) -> void Infinity_PopMenu(menu_name) -> void Infinity_PressKeyboardButton(???) -> ??? Infinity_PushMenu(menu_name) -> void Infinity_RandomNumber(min,range) -> int Infinity_RemoveINIEntry(section_name,value_name) -> void Infinity_RequestMultiplayerGameDetails(???) -> ??? Infinity_ScaleToText(element_name) -> void Infinity_ScrollLists(???) -> ??? Infinity_SelectDialogueOption(???) -> ??? Infinity_SelectItemAbility(ability_index,item_num,item_id) -> void Infinity_SelectListItem(???) -> ??? Infinity_SendChatMessage(msg,boolean) -> void Infinity_SetArea(element_name,x,y,w,h) Infinity_SetBackground(menu_name) -> void Infinity_SetCloudEnabled(???) -> ??? Infinity_SetGooglePlaySigninState(???) -> ??? Infinity_SetHairColor(index) -> void Infinity_SetHighlightColors(lr,lg,lb,la,cr,cg,cb,ca,rr,rg,rb,ra) -> void Infinity_SetINIValue(section_name,value_name,value) -> void Infinity_SetKey(value,type) -> void // sets key in C++ memory Infinity_SetLanguage(lang_id,showSubTitles) -> void Infinity_SetMajorColor(index) -> void Infinity_SetMinorColor(index) -> void Infinity_SetOffset(menu_name,x,y) Infinity_SetOverlay(menu_name) -> void Infinity_SetScreenSize(w,h) -> void Infinity_SetScrollTop(???) -> ??? Infinity_SetSkinColor(index) -> void Infinity_SetToken(token_name,value) -> void Infinity_ShutdownGame() -> void Infinity_SignInOutButtonEnabled(???) -> ??? Infinity_SplitItemStack(item_id,count,slot_name) -> void Infinity_StartItemCapture(map_name) -> void Infinity_StartKeybind(action) -> void Infinity_StopItemCapture(map_name) -> void Infinity_StopKeybind() -> void Infinity_StopMovie(element_name) -> void Infinity_SwapSlot(???) -> ??? Infinity_SwapWithAppearance() -> void Infinity_SwapWithPortrait(index) -> void Infinity_TakeScreenshot() -> void Infinity_TextEditHasFocus() -> boolean Infinity_TransitionMenu(menu_name) -> void Infinity_UpdateCharacterRecordExportPanel() -> void Infinity_UpdateCloudSaveState() -> void Infinity_UpdateInventoryRequesterPanel(???) -> ??? Infinity_UpdateLuaStats() -> void Infinity_UpdateStoreMainPanel(???) -> ??? Infinity_UpdateStoreRequesterPanel(???) -> ??? Infinity_WriteINILine(file_handle,string) -> void [/spoiler]

    lefreutKilivitzAdulNostariel
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 19,779
    I've passed this question to the developers, it will require time to answer.

    argent77Adul
Sign In or Register to comment.