View Full Version : Modding Question
Meliath1742
May 6th, 2018, 11:29
I'm currently modding a home brew game and I can't locate the graphic for the desktop Raise calculator. Any ideas?
Trenloe
May 6th, 2018, 15:42
It doesn't use any graphics as standard.
It's the raisecalculator desktop panel (in desktop_panels.xml) and uses the raisecalculator windowclass (in desktop_classes.xml).
There is no frame attached in the XML, but the script attached to the windowclass: desktop/scripts/raisecalc.lua has code to set the frame:
function onOptioUpdated()
local bEnabled = not OptionsManager.isOption("RSCL", "off")
base.setVisible(bEnabled)
target.setVisible(bEnabled)
targetlabel.setVisible(bEnabled)
score.setVisible(bEnabled)
scorelabel.setVisible(bEnabled)
result.setVisible(bEnabled)
if bEnabled then
base.setFrame("bonus")
else
base.setFrame(nil)
end
end
So, it uses the bonus framedef - which uses the graphics\frames\bonus.png graphic.
Meliath1742
May 6th, 2018, 20:05
Thanks Trenloe. Don't think this one's worth going after :p
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.