Aug 16, 2013, 2:51pm, jeff wrote:1. %blah = MissionInfo.desc; mis directory loop through files and create a new file object, and read it.
It's only working when the mis is loaded, i'd like to use it for a GUI.
Aug 16, 2013, 2:51pm, jeff wrote:you have to use schedule
How? It doesn't wait for the specified time to read the next line of code...
@Alexis: also, if you're looking for info on a level that shows up in PlayMissionGui, those variables already exist--the group PlayMissionGroup will contain groups of the ScriptObjects for all of your levels, grouped by category (e.g. MTYPE_Beginner has all of the Beginner levels). Each ScriptObject will also have a file field containing the path to the mission file.
In the GUI editor or by manually editing a .gui file, you can set a button's buttonType to RadioButton. RadioButton buttons in the same SimGroup will work together (by letting you only press one). There is a GuiRadioCtrl for them, but it looks very generic; I'd recommend using GuiBitmapButtonCtrl if you want to stay in the style of your modification (it will still work as expected). You can use the variable or command fields to grab the input from them (e.g. by setting a different variable for each and testing which is set, or by giving each a command to change the setting).
Sept 2, 2013, 10:28am, legocreator768 wrote:Another question: how do you male items (gems, power ups) have particle effects?
Gems have a gender?!
DISCRIMINATION AGAINST FEMALE GEMS!!!
on a serious note, make custom code and in the gem::onAdd function schedule a particle to spawn. Also please note that coding question and answer does mean in my opinion that you try to make an attempt to code, not entitlement to code.
I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.