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: [SOLVED] [WotLk] Character Select Background UI  (Read 4291 times)

spiderwaseem

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
    • http://anarchy-wow.com/
[SOLVED] [WotLk] Character Select Background UI
« on: January 11, 2016, 09:15:47 am »
Hello everyone!

I'm trying to add in a new background for my new class, Demon Hunters.
I was able to add in their background for my Character Creation and it looks fine (image below).



However, after creating the class from char-creation, it ends up looking like the race's background instead of the new class background (image below).



In GlueParent.lua, doing this alone (code below) doesn't do anything:
Code: [Select]
if ( name == "DemonHunter" or name == "DEMONHUNTER" ) then
name = "DemonHunter";
end

I decided to look at a reference and looked into EoC from Stoneharry's release (credits to him for the following code).
He's put in CharacterCreate.lua the following code under the function "SetCharacterRace(id)":
Code: [Select]
-- Set background
local backgroundFilename = GetCreateBackgroundModel(faction);
if CharacterCreate.selectedClass == 11 then
backgroundFilename = "DEMONHUNTER"
end
SetBackgroundModel(CharacterCreate, backgroundFilename);

if faction == nil then
faction = "Alliance";
end

It seemed to work fine for only the Character Creation screen, not the Character Selection.
(I understand why it says selectedClass == 11 | So no need to go over that).

I tried copying that code and changing where it says "CharacterCreate" to "CharacterSelect", but that just makes the background not show anywhere at all.

Any ideas on what the code should be, and where in specific should it be added?
All I'm trying to do is add in a custom/new background for a class. I'm capable of adding it only into the Character Creation screen only with the help of Stoneharry's code. However, the Character Select screen, I'm not aware of how to get that to show there, for class-specific only.

My class is only available to Blood Elves and Night Elves. Class ID = 12. selectedClass would = 11 because it's the 11th class displayed on the character creation screen.

Any help would be great,
Thanks for your time!
« Last Edit: January 16, 2016, 10:11:45 am by Admin »

Ghaster

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 51
    • View Profile
Re: [QUESTION] [WotLk] Character Select Background UI
« Reply #1 on: January 11, 2016, 03:50:31 pm »
Try looking into the death knight related changes (buttons and backgrounds) and just clone that.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

spiderwaseem

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
    • http://anarchy-wow.com/
Re: [QUESTION] [WotLk] Character Select Background UI
« Reply #2 on: January 11, 2016, 05:51:22 pm »
Quote from: "Ghaster"
Try looking into the death knight related changes (buttons and backgrounds) and just clone that.

I've looked around, however, I can't find it anywhere really.
Maybe it's a client-limitation?
I've looked mainly in GlueXML. Let me take a look at FrameXML, however, I doubt it's there either.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] [WotLk] Character Select Background UI
« Reply #3 on: January 11, 2016, 07:03:27 pm »
Nothing of this can be in FrameXML.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

spiderwaseem

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
    • http://anarchy-wow.com/
Re: [QUESTION] [WotLk] Character Select Background UI
« Reply #4 on: January 12, 2016, 07:18:43 am »
Quote from: "schlumpf"
Nothing of this can be in FrameXML.

Yeah, I didn't see anything.
If you could provide any help to the original thread though, that would be greatly appreciate.

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

spiderwaseem

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
    • http://anarchy-wow.com/
Re: [QUESTION] [WotLk] Character Select Background UI
« Reply #5 on: January 15, 2016, 06:17:01 pm »
Bump
« Last Edit: January 01, 1970, 01:00:00 am by Admin »