[Help] Option.xml

Results 1 to 5 of 5
  1. #1
    Apprentice o0slowpaul0o is offline
    MemberRank
    Jan 2007 Join Date
    21Posts

    [Help] Option.xml

    I don't know how clear I can explain this, so I'll do my best..

    In Option.xml I'm trying to create a new page. I'm unsure if the content relys on Gunz.exe.

    This is what i have done so far..

    This is the frame set to set up the new Option page:

    Code:
        <FRAME item="TestOptionGroup" parent="OptionGroup">
            <FRAMELOOK>NullFrameLook</FRAMELOOK>
            <BOUNDS>
                <X>140</X>
                <Y>70</Y>
                <W>350</W>
                <H>300</H>
            </BOUNDS>
            <VISIBLE>FALSE</VISIBLE>
            <RESIZABLE>false</RESIZABLE>
            <FOCUSABLE>false</FOCUSABLE>
            <MOVABLE>false</MOVABLE>
        </FRAME>
        
        <FRAME item="TestOptionGroup1" parent="TestOptionGroup">
            <FRAMELOOK>NullFrameLook</FRAMELOOK>
            <BOUNDS>
                <X>0</X>
                <Y>40</Y>
                <W>350</W>
                <H>400</H>
            </BOUNDS>
            <VISIBLE>TRUE</VISIBLE>
            <RESIZABLE>false</RESIZABLE>
            <FOCUSABLE>false</FOCUSABLE>
            <MOVABLE>false</MOVABLE>
        </FRAME>
    This is the code that generates the button up top in the new Option page:

    Code:
        <BUTTON item="TestTabBtn1" parent="AccountOptionGroup">
            <BOUNDS>
                <X>0</X>
                <Y>0</Y>
                <W>65</W>
                <H>30</H>
            </BOUNDS>
            <TEXT>Text Here</TEXT>
        </BUTTON>
    This code applies tells the button in the Option page to load the new page inside that Option:

    Code:
    <TABCONTROL item="TestTabControl">
            <TAB button = "TestTabBtn1" widget = "TestOptionGroup1"/>
            <TABCONTROLLOOK>NullTabLook</TABCONTROLLOOK>
        </TABCONTROL>
    This last part would show the new Option button on the left, most likely under Misc.

    Code:
    <BMBUTTON item = "ShowTestOptionGroup" parent = "OptionGroup">
            <BOUNDS>
                <X>19</X>
                <Y>332</Y>
                <W>70</W>
                <H>70</H>
            </BOUNDS>
            <TEXT></TEXT>
            <STRETCH/>
            <BITMAP type="up">test_blue.tga</BITMAP>
            <BITMAP type="over">test_blue.tga</BITMAP>
            <BITMAP type="down">test_green.tga</BITMAP>
            <PUSHBUTTON/>
        </BMBUTTON>
    Code:
        <TABCONTROL item="OptionTabControl">
            <TAB button = "ShowVideoOptionGroup" widget = "VideoOptionGroup"/>
            <TAB button = "ShowAudioOptionGroup" widget = "AudioOptionGroup"/>
    <!--        <TAB button = "ShowMouseOptionGroup" widget = "MouseOptionGroup"/>    -->
            <TAB button = "ShowKeyboardOptionGroup" widget = "KeyboardOptionGroup"/>
            <TAB button = "ShowEtcOptionGroup" widget = "EtcOptionGroup"/>
            <TAB button = "ShowMacroOptionGroup" widget = "MacroOptionGroup"/>
            <TAB button = "ShowTestOptionGroup" widget = "TestOptionGroup"/>
            <TABCONTROLLOOK>NullTabLook</TABCONTROLLOOK>
        </TABCONTROL>
    Now my main problem is, that the new Option group opens up in the Misc button and the new button doesn't show..



  2. #2
    Account Upgraded | Title Enabled! war is offline
    MemberRank
    Feb 2007 Join Date
    353Posts

    Re: [Help] Option.xml

    The button will work perfectly, but the .xml files only take in the executable set tags. Like <bounds>, <bitmap>, <frame>, etc..
    But you can't add a clan rankings page without setting up a set of new converters in the executable.

  3. #3
    Account Upgraded | Title Enabled! Squares is offline
    MemberRank
    Mar 2008 Join Date
    260Posts

    Re: [Help] Option.xml

    Why Would Clan Ranking Be In Options anyway.
    O.o

  4. #4
    Valued Member Khanna is offline
    MemberRank
    Jun 2007 Join Date
    New York, USALocation
    142Posts

    Re: [Help] Option.xml

    hey! God i love people who look through XML's, ive figured out soooo much just from that. Your doing well, but now you need to find the parent xml to that line of code, then find the parent to that and so on, so you can figure out how to make the button properly. then afterwhich youll need to figure out if GunZ would accept different types of coding to be shown in-game. If it cant youll have to do some XML stuff but youll need to literally code an auto-updating page into it.

    Have fun xP

    Katani

  5. #5
    Account Upgraded | Title Enabled! 7-Eleven is offline
    MemberRank
    Oct 2007 Join Date
    LalaLandLocation
    714Posts

    Re: [Help] Option.xml

    You'll still need to add something in the exe



Advertisement