Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] ```-- Function to set the background model for character select and create screens

[DiscordArchive] ```-- Function to set the background model for character select and create screens

[DiscordArchive] ```-- Function to set the background model for character select and create screens

rektbyfaith
Administrator
0
11-10-2022, 01:02 PM
#1
Archived author: Snowcraft • Posted: 2022-11-10T13:02:26.198000+00:00
Original source

```-- Function to set the background model for character select and create screens
function SetBackgroundModel(model, name)
local nameupper = strupper(name);
local path = "Interface\\Glues\\Models\\UI_"..name.."\\UI_"..name..".m2";
if ( model == CharacterCreate ) then
SetCharCustomizeBackground(path);
else
SetCharSelectBackground(path);
end
PlayGlueAmbience(GlueAmbienceTracks[nameupper], 4.0);
SetLighting(model, nameupper)
end```

Actually, this seems like... the entire thing?
rektbyfaith
11-10-2022, 01:02 PM #1

Archived author: Snowcraft • Posted: 2022-11-10T13:02:26.198000+00:00
Original source

```-- Function to set the background model for character select and create screens
function SetBackgroundModel(model, name)
local nameupper = strupper(name);
local path = "Interface\\Glues\\Models\\UI_"..name.."\\UI_"..name..".m2";
if ( model == CharacterCreate ) then
SetCharCustomizeBackground(path);
else
SetCharSelectBackground(path);
end
PlayGlueAmbience(GlueAmbienceTracks[nameupper], 4.0);
SetLighting(model, nameupper)
end```

Actually, this seems like... the entire thing?

rektbyfaith
Administrator
0
11-10-2022, 01:02 PM
#2
Archived author: Snowcraft • Posted: 2022-11-10T13:02:48.676000+00:00
Original source

...I'm probably wrong, but it's a start point.
rektbyfaith
11-10-2022, 01:02 PM #2

Archived author: Snowcraft • Posted: 2022-11-10T13:02:48.676000+00:00
Original source

...I'm probably wrong, but it's a start point.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)