Skip to content

Commit 91618c2

Browse files
committed
Improved icon loading
1 parent 7dadfa4 commit 91618c2

File tree

8 files changed

+78
-46
lines changed

8 files changed

+78
-46
lines changed

XEBPLUS/PLG/PLG_neutrinoHDD.lua

100755100644
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ if NEUTRINO_EnableHDD == true then
1515
if theXEBPlusVersion == "XEBPLUS-2022-09" then -- If using the XEB+ Xmas showcase, an external icon will be loaded
1616
PluginData.Icon = 88; -- Preventive, in case the game files' are missing
1717
if System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_hdl.png") then
18-
AddIcon=#themeInUse+1
19-
themeInUse[AddIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_hdl.png")
20-
PluginData.Icon = AddIcon;
18+
AddInhddcon=#themeInUse+1
19+
themeInUse[AddInhddcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_hdl.png")
20+
PluginData.Icon = AddInhddcon;
21+
elseif System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_hdd_bdm.png") then
22+
AddInhddcon=#themeInUse+1
23+
themeInUse[AddInhddcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_hdd_bdm.png")
24+
PluginData.Icon = AddInhddcon;
2125
elseif System.doesFileExist(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_hdl.png") then
22-
AddneutrinohdlIcon=#themeInUse+1
23-
themeInUse[AddneutrinohdlIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_hdl.png")
24-
PluginData.Icon = AddneutrinohdlIcon;
26+
AddInhddcon=#themeInUse+1
27+
themeInUse[AddInhddcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_hdl.png")
28+
PluginData.Icon = AddInhddcon;
2529
end
2630
else -- Else, the icon will be loaded from XEB+'s theme
2731
PluginData.Icon = 88;

XEBPLUS/PLG/PLG_neutrinoHDL.lua

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ if NEUTRINO_EnableHDL == true then
1515
if theXEBPlusVersion == "XEBPLUS-2022-09" then -- If using the XEB+ Xmas showcase, an external icon will be loaded
1616
PluginData.Icon = 88; -- Preventive, in case the game files' are missing
1717
if System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_hdl.png") then
18-
AddIcon=#themeInUse+1
19-
themeInUse[AddIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_hdl.png")
20-
PluginData.Icon = AddIcon;
18+
AddnhdlIcon=#themeInUse+1
19+
themeInUse[AddnhdlIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_hdl.png")
20+
PluginData.Icon = AddnhdlIcon;
21+
elseif System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_hdd_ide.png") then
22+
AddnhdlIcon=#themeInUse+1
23+
themeInUse[AddnhdlIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_hdd_ide.png")
24+
PluginData.Icon = AddnhdlIcon;
2125
elseif System.doesFileExist(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_hdl.png") then
22-
AddneutrinohdlIcon=#themeInUse+1
23-
themeInUse[AddneutrinohdlIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_hdl.png")
24-
PluginData.Icon = AddneutrinohdlIcon;
26+
AddnhdlIcon=#themeInUse+1
27+
themeInUse[AddnhdlIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_hdl.png")
28+
PluginData.Icon = AddnhdlIcon;
2529
end
2630
else -- Else, the icon will be loaded from XEB+'s theme
2731
PluginData.Icon = 88;

XEBPLUS/PLG/PLG_neutrinoILINK.lua

100755100644
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ if NEUTRINO_EnableILINK == true then
1515
if theXEBPlusVersion == "XEBPLUS-2022-09" then -- If using the XEB+ Xmas showcase, an external icon will be loaded
1616
PluginData.Icon = 120; -- Preventive, in case the game files' are missing
1717
if System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_ilink.png") then
18-
AddIcon=#themeInUse+1
19-
themeInUse[AddIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_ilink.png")
20-
PluginData.Icon = AddIcon;
18+
AddnilinkIcon=#themeInUse+1
19+
themeInUse[AddnilinkIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_ilink.png")
20+
PluginData.Icon = AddnilinkIcon;
21+
elseif System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_ilink.png") then
22+
AddnilinkIcon=#themeInUse+1
23+
themeInUse[AddnilinkIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_ilink.png")
24+
PluginData.Icon = AddnilinkIcon;
2125
elseif System.doesFileExist(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_ilink.png") then
22-
AddneutrinohdlIcon=#themeInUse+1
23-
themeInUse[AddneutrinohdlIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_ilink.png")
24-
PluginData.Icon = AddneutrinohdlIcon;
26+
AddnilinkIcon=#themeInUse+1
27+
themeInUse[AddnilinkIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_ilink.png")
28+
PluginData.Icon = AddnilinkIcon;
2529
end
2630
else -- Else, the icon will be loaded from XEB+'s theme
2731
PluginData.Icon = 120;

XEBPLUS/PLG/PLG_neutrinoMMCE.lua

100755100644
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ if NEUTRINO_EnableMMCE == true then
1515
if theXEBPlusVersion == "XEBPLUS-2022-09" then -- If using the XEB+ Xmas showcase, an external icon will be loaded
1616
PluginData.Icon = 96; -- Preventive, in case the game files' are missing
1717
if System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_mmce.png") then
18-
AddIcon=#themeInUse+1
19-
themeInUse[AddIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_mmce.png")
20-
PluginData.Icon = AddIcon;
18+
AddnmmceIcon=#themeInUse+1
19+
themeInUse[AddnmmceIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_mmce.png")
20+
PluginData.Icon = AddnmmceIcon;
21+
elseif System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_mmce.png") then
22+
AddnmmceIcon=#themeInUse+1
23+
themeInUse[AddnmmceIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_mmce.png")
24+
PluginData.Icon = AddnmmceIcon;
2125
elseif System.doesFileExist(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_mmce.png") then
22-
AddneutrinohdlIcon=#themeInUse+1
23-
themeInUse[AddneutrinohdlIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_mmce.png")
24-
PluginData.Icon = AddneutrinohdlIcon;
26+
AddnmmceIcon=#themeInUse+1
27+
themeInUse[AddnmmceIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_mmce.png")
28+
PluginData.Icon = AddnmmceIcon;
2529
end
2630
else -- Else, the icon will be loaded from XEB+'s theme
2731
PluginData.Icon = 96;

XEBPLUS/PLG/PLG_neutrinoMX4.lua

100755100644
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ if NEUTRINO_EnableMX4 == true then
1515
if theXEBPlusVersion == "XEBPLUS-2022-09" then -- If using the XEB+ Xmas showcase, an external icon will be loaded
1616
PluginData.Icon = 96; -- Preventive, in case the game files' are missing
1717
if System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_mx4.png") then
18-
AddIcon=#themeInUse+1
19-
themeInUse[AddIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_mx4.png")
20-
PluginData.Icon = AddIcon;
18+
Addnmx4Icon=#themeInUse+1
19+
themeInUse[Addnmx4Icon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_mx4.png")
20+
PluginData.Icon = Addnmx4Icon;
21+
elseif System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_mx4sio.png") then
22+
Addnmx4Icon=#themeInUse+1
23+
themeInUse[Addnmx4Icon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_mx4sio.png")
24+
PluginData.Icon = Addnmx4Icon;
2125
elseif System.doesFileExist(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_mx4.png") then
22-
AddneutrinohdlIcon=#themeInUse+1
23-
themeInUse[AddneutrinohdlIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_mx4.png")
24-
PluginData.Icon = AddneutrinohdlIcon;
26+
Addnmx4Icon=#themeInUse+1
27+
themeInUse[Addnmx4Icon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_mx4.png")
28+
PluginData.Icon = Addnmx4Icon;
2529
end
2630
else -- Else, the icon will be loaded from XEB+'s theme
2731
PluginData.Icon = 96;

XEBPLUS/PLG/PLG_neutrinoSettings.lua

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,21 @@ PluginData = {};
131131
PluginData.Type = "LuaScript";
132132
PluginData.Category = 6;
133133
PluginData.Name = nSetLang[1];
134-
PluginData.Description = nSetLang[2];
134+
PluginData.Description = "v2.9 by sync-on-luma(Y)\n"..nSetLang[2];
135135
PluginData.Safe = true;
136136
PluginData.ValueA = "APPS/neutrinoLauncher/settings.lua";
137137
PluginData.ValueB = "NONE";
138138
PluginData.ValueC = "NONE";
139139
if theXEBPlusVersion == "XEBPLUS-2022-09" then -- If using the XEB+ Xmas showcase, an external icon will be loaded
140140
PluginData.Icon = 70; -- Preventive, in case the game files' are missing
141141
if System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_set_neutrino_cfg.png") then
142-
AddIcon=#themeInUse+1
143-
themeInUse[AddIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_set_neutrino_cfg.png")
144-
PluginData.Icon = AddIcon;
142+
AddneutrinosethdlIcon=#themeInUse+1
143+
themeInUse[AddneutrinosethdlIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_set_neutrino_cfg.png")
144+
PluginData.Icon = AddneutrinosethdlIcon;
145+
elseif System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_set_neutrinocfg.png") then
146+
AddneutrinosethdlIcon=#themeInUse+1
147+
themeInUse[AddneutrinosethdlIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_set_neutrinocfg.png")
148+
PluginData.Icon = AddneutrinosethdlIcon;
145149
elseif System.doesFileExist(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_set_neutrino_cfg.png") then
146150
AddneutrinosethdlIcon=#themeInUse+1
147151
themeInUse[AddneutrinosethdlIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_set_neutrino_cfg.png")

XEBPLUS/PLG/PLG_neutrinoUDPBD.lua

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ if NEUTRINO_EnableUDPBD == true then
1515
if theXEBPlusVersion == "XEBPLUS-2022-09" then -- If using the XEB+ Xmas showcase, an external icon will be loaded
1616
PluginData.Icon = 102; -- Preventive, in case the game files' are missing
1717
if System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_udpbd.png") then
18-
AddIcon=#themeInUse+1
19-
themeInUse[AddIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_udpbd.png")
20-
PluginData.Icon = AddIcon;
18+
AddnudpbdIcon=#themeInUse+1
19+
themeInUse[AddnudpbdIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_udpbd.png")
20+
PluginData.Icon = AddnudpbdIcon;
21+
elseif System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_udpbd.png") then
22+
AddnudpbdIcon=#themeInUse+1
23+
themeInUse[AddnudpbdIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_udpbd.png")
24+
PluginData.Icon = AddnudpbdIcon;
2125
elseif System.doesFileExist(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_udpbd.png") then
22-
AddneutrinohdlIcon=#themeInUse+1
23-
themeInUse[AddneutrinohdlIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_udpbd.png")
24-
PluginData.Icon = AddneutrinohdlIcon;
26+
AddnudpbdIcon=#themeInUse+1
27+
themeInUse[AddnudpbdIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_udpbd.png")
28+
PluginData.Icon = AddnudpbdIcon;
2529
end
2630
else -- Else, the icon will be loaded from XEB+'s theme
2731
PluginData.Icon = 102;

XEBPLUS/PLG/PLG_neutrinoUSB.lua

100755100644
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ if NEUTRINO_EnableUSB == true then
1515
if theXEBPlusVersion == "XEBPLUS-2022-09" then -- If using the XEB+ Xmas showcase, an external icon will be loaded
1616
PluginData.Icon = 114; -- Preventive, in case the game files' are missing
1717
if System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_usb.png") then
18-
AddIcon=#themeInUse+1
19-
themeInUse[AddIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_usb.png")
20-
PluginData.Icon = AddIcon;
18+
AddnusblIcon=#themeInUse+1
19+
themeInUse[AddnusblIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_tool_neutrino_usb.png")
20+
PluginData.Icon = AddnusblIcon;
21+
elseif System.doesFileExist(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_usb.png") then
22+
AddnusblIcon=#themeInUse+1
23+
themeInUse[AddnusblIcon] = Graphics.loadImage(System.currentDirectory().."THM/"..loadedTheme.."/ic_media_usb.png")
24+
PluginData.Icon = AddnusblIcon;
2125
elseif System.doesFileExist(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_usb.png") then
22-
AddneutrinohdlIcon=#themeInUse+1
23-
themeInUse[AddneutrinohdlIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_usb.png")
24-
PluginData.Icon = AddneutrinohdlIcon;
26+
AddnusblIcon=#themeInUse+1
27+
themeInUse[AddnusblIcon] = Graphics.loadImage(System.currentDirectory().."APPS/neutrinoLauncher/image/ic_tool_neutrino_usb.png")
28+
PluginData.Icon = AddnusblIcon;
2529
end
2630
else -- Else, the icon will be loaded from XEB+'s theme
2731
PluginData.Icon = 114;

0 commit comments

Comments
 (0)