This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Question: GlueXML] Character Creation Screen Positioning  (Read 2916 times)

Curas

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
    • http://worldofelysium.dyndns.org/
[Question: GlueXML] Character Creation Screen Positioning
« on: November 12, 2010, 12:15:24 am »
We've got a little problem with our character creation screen, we have the races "Tauren" "Troll" and "Draenei" declared as unplayable. The orcs, we have swapped to Humans. Now I want the "Orc-Humans" where the orcs should be and not where the Draenei are. I'm a total noob with XML, you may have a solution for us?



Best Regards

Curas
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Herbalism

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 81
    • View Profile
Re: [Question: GlueXML] Character Creation Screen Positioning
« Reply #1 on: November 13, 2010, 08:25:10 pm »

Replace the orcs portrait with the human portait and the elf portrait with the troll portrait :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Curas

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
    • http://worldofelysium.dyndns.org/
Re: [Question: GlueXML] Character Creation Screen Positioning
« Reply #2 on: November 14, 2010, 04:44:57 am »
I want that the Humans at the bottom of the alliance flag be at the top of the horde flag here is my CharacterCreate.xml

Code: [Select]
<CheckButton name="CharacterCreateRaceButton1" inherits="CharacterCreateRaceButtonTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="35" y="-68"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton2" inherits="CharacterCreateRaceButtonTemplate" id="2">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton1" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton3" inherits="CharacterCreateRaceButtonTemplate" id="3">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton2" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton4" inherits="CharacterCreateRaceButtonTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton3" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton5" inherits="CharacterCreateRaceButtonTemplate" id="5">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton4" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton6" inherits="CharacterCreateRaceButtonTemplate" id="6">
<Anchors>
<Anchor point="LEFT" relativeTo="CharacterCreateRaceButton1" relativePoint="RIGHT">
<Offset>
<AbsDimension x="49" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton7" inherits="CharacterCreateRaceButtonTemplate" id="7">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton6" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton8" inherits="CharacterCreateRaceButtonTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton7" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>

If I change anything in this file it's result in a critical error  :udumb:

[spoiler:26es09rl][/spoiler:26es09rl]

Regards

Curas

EDIT:
New Screenshot added
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Curas

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
    • http://worldofelysium.dyndns.org/
Re: [Question: GlueXML] Character Creation Screen Positioning
« Reply #3 on: November 14, 2010, 05:51:03 pm »
It's solved. /close plz

Regards

Curas
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Question: GlueXML] Character Creation Screen Positioning
« Reply #4 on: November 18, 2010, 01:49:23 pm »
How it is solve. Please write down all your experience that other can learn from it.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Curas

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
    • http://worldofelysium.dyndns.org/
Re: [Question: GlueXML] Character Creation Screen Positioning
« Reply #5 on: November 18, 2010, 04:56:03 pm »
As your wish, Steff.

After trying change the coordinates in the CharacterCreate.xml, I finally get the right button:

Code: [Select]
  <CheckButton name="CharacterCreateRaceButton5" inherits="CharacterCreateRaceButtonTemplate" id="5">
                        <Anchors>
                           <Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton4" relativePoint="BOTTOMLEFT">
                              <Offset>
                                 <AbsDimension x="0" y="-5"/>
                              </Offset>
                           </Anchor>
                        </Anchors>
                     </CheckButton>

I just changend the <AbsDimension x="0" y="-5"/> to <AbsDimension x="95" y="45"/> and the Button we're on the right position. But the CharacterCustomization was also moved huge so I changed the CharacterCreateGenderButtonMale, cuz it's relative to CharacterCreateRaceButton5, take a look at this:
Before:
Code: [Select]
<CheckButton name="CharacterCreateGenderButtonMale" inherits="CharacterCreateGenderButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton5" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="25" y="-15"/>
</Offset>
</Anchor>
</Anchors>
After:
Code: [Select]
<CheckButton name="CharacterCreateGenderButtonMale" inherits="CharacterCreateGenderButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton5" relativePoint="BOTTOMLEFT">
<Offset>
     <AbsDimension x="-70" y="-65"/>
</Offset>
</Anchor>
</Anchors>

ONLY change the Coordinates at <AbsDimension>, every other change in that file would end in an critical error. So after changing the coordinates for the "CharacterCreateRaceButton5"
from
<AbsDimension x="0" y="-5"/>
to
<AbsDimension x="95" y="45"/> just change the coordinates for the "CharacterCreateGenderButtonMale"
<AbsDimension x="25" y="-15"/>
to
<AbsDimension x="-70" y="-65"/>

The Result:
« Last Edit: January 01, 1970, 01:00:00 am by Admin »