4
Fork 0
Browse Source

Properly added Enderal inventory icons, allowing to switch between 5 theme icons in MCM

master
Eddoursul 9 months ago
parent
commit
2b04684066
  1. 0
      interface/skyui/icons_category_enderal.swf
  2. BIN
      scripts/ski_configmenu.pex
  3. 48
      source/scripts/ski_configmenu.psc

0
interface/skyui/icons_category_psychosteve.swf → interface/skyui/icons_category_enderal.swf

BIN
scripts/ski_configmenu.pex

Binary file not shown.

48
source/scripts/ski_configmenu.psc

@ -331,21 +331,7 @@ event OnVersionUpdate(int a_version) @@ -331,21 +331,7 @@ event OnVersionUpdate(int a_version)
if a_version >= 9 && CurrentVersion < 9
debug.Trace(self as String + ": Updating to script version 9")
_categoryIconThemeShortNames = new String[4]
_categoryIconThemeShortNames[0] = "SKYUI V5"
_categoryIconThemeShortNames[1] = "CELTIC"
_categoryIconThemeShortNames[2] = "CURVED"
_categoryIconThemeShortNames[3] = "STRAIGHT"
_categoryIconThemeLongNames = new String[4]
_categoryIconThemeLongNames[0] = "SkyUI V5, by PsychoSteve"
_categoryIconThemeLongNames[1] = "Celtic, by GreatClone"
_categoryIconThemeLongNames[2] = "Curved, by T3T"
_categoryIconThemeLongNames[3] = "Straight, by T3T"
_categoryIconThemeValues = new String[4]
_categoryIconThemeValues[0] = "skyui\\icons_category_psychosteve.swf"
_categoryIconThemeValues[1] = "skyui\\icons_category_celtic.swf"
_categoryIconThemeValues[2] = "skyui\\icons_category_curved.swf"
_categoryIconThemeValues[3] = "skyui\\icons_category_straight.swf"
AddEnderalIcons()
endIf
endEvent
@ -1760,6 +1746,12 @@ function ApplySettings() @@ -1760,6 +1746,12 @@ function ApplySettings()
Apply3DItemXOffset()
Apply3DItemYOffset()
Apply3DItemScale()
; Added in Enderal SE 2.0.10
if _categoryIconThemeIdx > _categoryIconThemeValues.Length - 1 || _categoryIconThemeValues.Length < 5
AddEnderalIcons()
endif
endFunction
function ApplyItemListFontSize()
@ -1950,6 +1942,32 @@ function RefreshFavoriteHotkeys() @@ -1950,6 +1942,32 @@ function RefreshFavoriteHotkeys()
SetKeyMapOptionValueST(SKI_FavoritesManagerInstance.SaveEquipStateKey, false, "FAV_EQUIP_STATE_KEY")
endFunction
function AddEnderalIcons()
_categoryIconThemeShortNames = new String[5]
_categoryIconThemeShortNames[0] = "ENDERAL"
_categoryIconThemeShortNames[1] = "CELTIC"
_categoryIconThemeShortNames[2] = "CURVED"
_categoryIconThemeShortNames[3] = "STRAIGHT"
_categoryIconThemeShortNames[4] = "SKYUI V5"
_categoryIconThemeLongNames = new String[5]
_categoryIconThemeLongNames[0] = "Enderal"
_categoryIconThemeLongNames[1] = "Celtic, by GreatClone"
_categoryIconThemeLongNames[2] = "Curved, by T3T"
_categoryIconThemeLongNames[3] = "Straight, by T3T"
_categoryIconThemeLongNames[4] = "SkyUI V5, by PsychoSteve"
_categoryIconThemeValues = new String[5]
_categoryIconThemeValues[0] = "skyui\\icons_category_enderal.swf"
_categoryIconThemeValues[1] = "skyui\\icons_category_celtic.swf"
_categoryIconThemeValues[2] = "skyui\\icons_category_curved.swf"
_categoryIconThemeValues[3] = "skyui\\icons_category_straight.swf"
_categoryIconThemeValues[4] = "skyui\\icons_category_psychosteve.swf"
_categoryIconThemeIdx = 0
SetTextOptionValueST(_categoryIconThemeShortNames[_categoryIconThemeIdx])
SKI_SettingsManagerInstance.ClearOverride("Appearance$icons$category$source")
SKI_SettingsManagerInstance.SetOverride("Appearance$icons$category$source", _categoryIconThemeValues[_categoryIconThemeIdx])
endFunction
; REMOVED DATA -----------------------------------------------------------------------------------

Loading…
Cancel
Save