Forums WoW Modding Discussion Modeling [Archive] WoD Login screen camera

[Archive] WoD Login screen camera

[Archive] WoD Login screen camera

rektbyfaith
Administrator
0
12-18-2016, 05:38 PM
#1
Archived author: Uthil • Posted: 2016-12-18T17:38:53+00:00
Original source

Hey lads, i've recently changed the login screen of vanilla to wod for some tests. Tho i have a problem with the camera, seems that keeps the camera from vanilla, even if the M2 is the WoD file, and its really close. So after a few tests im starting to believe that the camera handling isnt inside M2 but an lua or xml file. Anyone has any idea how to make the camera work ? Or any idea where to look ? Here is a screenshot of how it looks.

[Image: WoWScrnShot_121816_192948.thumb.jpg.a366...46b2c5.jpg]

P.S i also check this tut to see if the case was on editing the a lua or xml, tho i cant find that Loginscene.lua anywhere.

Is it possible to be in the AccountLogin.lua ? Im also adding its code, since i couldnt track anything about camera -also im not so lua savy i can say more of a noobish.
Quote:Spoiler

FADE_IN_TIME = 2;

DEFAULT_TOOLTIP_COLOR = {0.8, 0.8, 0.8, 0.09, 0.09, 0.09};

MAX_PIN_LENGTH = 10;

function AccountLogin_OnLoad()

    this:SetSequence(0);

    this:SetCamera(0);

    TOSFrame.noticeType = "EULA";

    this:RegisterEvent("SHOW_SERVER_ALERT");

    this:RegisterEvent("SHOW_SURVEY_NOTIFICATION");

    local versionType, buildType, version, internalVersion, date = GetBuildInfo();

    AccountLoginVersion:SetText(format(TEXT(VERSION_TEMPLATE), versionType, version, internalVersion, buildType, date));

    -- Color edit box backdrops

    local backdropColor = DEFAULT_TOOLTIP_COLOR;

    AccountLoginAccountEdit:SetBackdropBorderColor(backdropColor[1], backdropColor[2], backdropColor[3]);

    AccountLoginAccountEdit:SetBackdropColor(backdropColor[4], backdropColor[5], backdropColor[6]);

    AccountLoginPasswordEdit:SetBackdropBorderColor(backdropColor[1], backdropColor[2], backdropColor[3]);

    AccountLoginPasswordEdit:SetBackdropColor(backdropColor[4], backdropColor[5], backdropColor[6]);

end

function AccountLogin_OnShow()

    CurrentGlueMusic = "Sound\\Music\\GlueScreenMusic\\wow_main_theme.mp3";

    -- Try to show the EULA or the TOS

    AccountLogin_ShowUserAgreements();

    local serverName = GetServerName();

    if(serverName) then

        AccountLoginRealmName:SetText(serverName);

    else

        AccountLoginRealmName:Hide()

    end

    local accountName = GetSavedAccountName();

    AccountLoginAccountEdit:SetText(accountName);

    AccountLoginPasswordEdit:SetText("");

    if ( accountName == "" ) then

        AccountLogin_FocusAccountName();

    else

        AccountLogin_FocusPassword();

    end

end

function AccountLogin_FocusPassword()

    AccountLoginPasswordEdit:SetFocus();

end

function AccountLogin_FocusAccountName()

    AccountLoginAccountEdit:SetFocus();

end

function AccountLogin_OnChar()

end

function AccountLogin_OnKeyDown()

    if ( arg1 == "ESCAPE" ) then

        if ( ConnectionHelpFrame:IsVisible() ) then

            ConnectionHelpFrame:Hide();

            AccountLoginUI:Show();

        elseif ( SurveyNotificationFrame:IsVisible() ) then

            -- do nothing

        else

            AccountLogin_Exit();

        end

    elseif ( arg1 == "ENTER" ) then

        if ( not TOSAccepted() ) then

            return;

        elseif ( TOSFrame:IsVisible() or ConnectionHelpFrame:IsVisible() ) then

            return;

        elseif ( SurveyNotificationFrame:IsVisible() ) then

            AccountLogin_SurveyNotificationDone(1);

        end

        AccountLogin_Login();

    elseif ( arg1 == "PRINTSCREEN" ) then

        Screenshot();

    end

end

function AccountLogin_OnEvent(event)

    if ( event == "SHOW_SERVER_ALERT" ) then

        ServerAlertText:SetText(arg1);

        ServerAlertScrollFrame:UpdateScrollChildRect();

        ServerAlertFrame:Show();

    elseif ( event == "SHOW_SURVEY_NOTIFICATION" ) then

        AccountLogin_ShowSurveyNotification();

    end

end

function AccountLogin_Login()

    PlaySound("gsLogin");

    DefaultServerLogin(AccountLoginAccountEdit:GetText(), AccountLoginPasswordEdit:GetText());

    AccountLoginPasswordEdit:SetText("");

    if ( AccountLoginSaveAccountName:GetChecked() ) then

        SetSavedAccountName(AccountLoginAccountEdit:GetText());

    else

        SetSavedAccountName("");

    end

end

function AccountLogin_ManageAccount()

    PlaySound("gsLoginNewAccount");

    LaunchURL(AUTH_NO_TIME_URL);

end

function AccountLogin_LaunchCommunitySite()

    PlaySound("gsLoginNewAccount");

    LaunchURL(COMMUNITY_URL);

end

function AccountLogin_Credits()

    if ( not GlueDialog:IsVisible() ) then

        PlaySound("gsTitleCredits");

        SetGlueScreen("credits");

    end

end

function AccountLogin_Cinematics()

    if ( not GlueDialog:IsVisible() ) then

        PlaySound("gsTitleIntroMovie");

        SetGlueScreen("movie");

    end

end

function AccountLogin_Options()

    PlaySound("gsTitleOptions");

end

function AccountLogin_Exit()

    PlaySound("gsTitleQuit");

    QuitGame();

end

function AccountLogin_ShowSurveyNotification()

    GlueDialog:Hide();

    AccountLoginUI:Hide();

    SurveyNotificationAccept:Enable();

    SurveyNotificationDecline:Enable();

    SurveyNotificationFrame:Show();

end

function AccountLogin_SurveyNotificationDone(accepted)

    SurveyNotificationFrame:Hide();

    SurveyNotificationAcceptBig Grinisable();

    SurveyNotificationDeclineBig Grinisable();

    SurveyNotificationDone(accepted);

    AccountLoginUI:Show();

end

function AccountLogin_ShowUserAgreements()

    TOSScrollFrame:Hide();

    EULAScrollFrame:Hide();

    ScanningScrollFrame:Hide();

    ContestScrollFrame:Hide();

    TOSText:Hide();

    EULAText:Hide();

    ScanningText:Hide();

    if ( not EULAAccepted() ) then

        if ( ShowEULANotice() ) then

            TOSNotice:SetText(EULA_NOTICE);

            TOSNotice:Show();

        end

        AccountLoginUI:Hide();

        TOSFrame.noticeType = "EULA";

        TOSFrameTitle:SetText(EULA_FRAME_TITLE);

        TOSFrameHeader:SetWidth(TOSFrameTitle:GetWidth() + 310);

        EULAScrollFrame:Show();

        EULAText:Show();

        TOSFrame:Show();

    elseif ( not TOSAccepted() ) then

        if ( ShowTOSNotice() ) then

            TOSNotice:SetText(TOS_NOTICE);

            TOSNotice:Show();

        end

        AccountLoginUI:Hide();

        TOSFrame.noticeType = "TOS";

        TOSFrameTitle:SetText(TOS_FRAME_TITLE);

        TOSFrameHeader:SetWidth(TOSFrameTitle:GetWidth() + 310);

        TOSScrollFrame:Show();

        TOSText:Show();

        TOSFrame:Show();

    elseif ( not ScanningAccepted() and SHOW_SCANNING_AGREEMENT ) then

        if ( ShowScanningNotice() ) then

            TOSNotice:SetText(SCANNING_NOTICE);

            TOSNotice:Show();

        end

        AccountLoginUI:Hide();

        TOSFrame.noticeType = "SCAN";

        TOSFrameTitle:SetText(SCAN_FRAME_TITLE);

        TOSFrameHeader:SetWidth(TOSFrameTitle:GetWidth() + 310);

        ScanningScrollFrame:Show();

        ScanningText:Show();

        TOSFrame:Show();

    elseif ( not ContestAccepted() and SHOW_CONTEST_AGREEMENT ) then

        if ( ShowContestNotice() ) then

            TOSNotice:SetText(CONTEST_NOTICE);

            TOSNotice:Show();

        end

        AccountLoginUI:Hide();

        TOSFrame.noticeType = "CONTEST";

        TOSFrameTitle:SetText(CONTEST_FRAME_TITLE);

        TOSFrameHeader:SetWidth(TOSFrameTitle:GetWidth() + 310);

        ContestScrollFrame:Show();

        ContestText:Show();

        TOSFrame:Show();

    else

        AccountLoginUI:Show();

        TOSFrame:Hide();

    end

end

-- Virtual keypad functions

function VirtualKeypadFrame_OnEvent(event)

    if ( event == "PLAYER_ENTER_PIN" ) then

        for i=1, 10 do

            getglobal("VirtualKeypadButton"..i):SetText(getglobal("arg"..i));

        end

    end

    -- Randomize location to prevent hacking (yeah right)

    local xPadding = 5;

    local yPadding = 10;

    local xPos = random(xPadding, GlueParent:GetWidth()-VirtualKeypadFrame:GetWidth()-xPadding);

    local yPos = random(yPadding, GlueParent:GetHeight()-VirtualKeypadFrame:GetHeight()-yPadding);

    VirtualKeypadFrame:SetPoint("TOPLEFT", GlueParent, "TOPLEFT", xPos, -yPos);

    VirtualKeypadFrame:Show();

    VirtualKeypad_UpdateButtons();

end

function VirtualKeypadButton_OnClick()

    local text = VirtualKeypadText:GetText();

    if ( not text ) then

        text = "";

    end

    VirtualKeypadText:SetText(text.."*");

    VirtualKeypadFrame.PIN = VirtualKeypadFrame.PIN..this:GetID();

    VirtualKeypad_UpdateButtons();

end

function VirtualKeypadOkayButton_OnClick()

    local PIN = VirtualKeypadFrame.PIN;

    local numNumbers = strlen(PIN);

    local pinNumber = {};

    for i=1, MAX_PIN_LENGTH do

        if ( i <= numNumbers ) then

            pinNumber = strsub(PIN,i,i);
        else
            pinNumber = nil;
        end
    end
    PINEntered(pinNumber[1] , pinNumber[2], pinNumber[3], pinNumber[4], pinNumber[5], pinNumber[6], pinNumber[7], pinNumber[8], pinNumber[9], pinNumber[10]);
    VirtualKeypadFrame:Hide();
end

function VirtualKeypad_UpdateButtons()
    local numNumbers = strlen(VirtualKeypadFrame.PIN);
    if ( numNumbers >= 4 and numNumbers <= MAX_PIN_LENGTH ) then
        VirtualKeypadOkayButton:Enable();
    else
        VirtualKeypadOkayButtonBig Grinisable();
    end
    if ( numNumbers == 0 ) then
        VirtualKeypadBackButtonBig Grinisable();
    else
        VirtualKeypadBackButton:Enable();
    end
    if ( numNumbers >= MAX_PIN_LENGTH ) then
        for i=1, MAX_PIN_LENGTH do
            getglobal("VirtualKeypadButton"..i)Big Grinisable();
        end
    else
        for i=1, MAX_PIN_LENGTH do
            getglobal("VirtualKeypadButton"..i):Enable();
        end
    end
end
 

 
rektbyfaith
12-18-2016, 05:38 PM #1

Archived author: Uthil • Posted: 2016-12-18T17:38:53+00:00
Original source

Hey lads, i've recently changed the login screen of vanilla to wod for some tests. Tho i have a problem with the camera, seems that keeps the camera from vanilla, even if the M2 is the WoD file, and its really close. So after a few tests im starting to believe that the camera handling isnt inside M2 but an lua or xml file. Anyone has any idea how to make the camera work ? Or any idea where to look ? Here is a screenshot of how it looks.

[Image: WoWScrnShot_121816_192948.thumb.jpg.a366...46b2c5.jpg]

P.S i also check this tut to see if the case was on editing the a lua or xml, tho i cant find that Loginscene.lua anywhere.

Is it possible to be in the AccountLogin.lua ? Im also adding its code, since i couldnt track anything about camera -also im not so lua savy i can say more of a noobish.

Quote:Spoiler

FADE_IN_TIME = 2;

DEFAULT_TOOLTIP_COLOR = {0.8, 0.8, 0.8, 0.09, 0.09, 0.09};

MAX_PIN_LENGTH = 10;

function AccountLogin_OnLoad()

    this:SetSequence(0);

    this:SetCamera(0);

    TOSFrame.noticeType = "EULA";

    this:RegisterEvent("SHOW_SERVER_ALERT");

    this:RegisterEvent("SHOW_SURVEY_NOTIFICATION");

    local versionType, buildType, version, internalVersion, date = GetBuildInfo();

    AccountLoginVersion:SetText(format(TEXT(VERSION_TEMPLATE), versionType, version, internalVersion, buildType, date));

    -- Color edit box backdrops

    local backdropColor = DEFAULT_TOOLTIP_COLOR;

    AccountLoginAccountEdit:SetBackdropBorderColor(backdropColor[1], backdropColor[2], backdropColor[3]);

    AccountLoginAccountEdit:SetBackdropColor(backdropColor[4], backdropColor[5], backdropColor[6]);

    AccountLoginPasswordEdit:SetBackdropBorderColor(backdropColor[1], backdropColor[2], backdropColor[3]);

    AccountLoginPasswordEdit:SetBackdropColor(backdropColor[4], backdropColor[5], backdropColor[6]);

end

function AccountLogin_OnShow()

    CurrentGlueMusic = "Sound\\Music\\GlueScreenMusic\\wow_main_theme.mp3";

    -- Try to show the EULA or the TOS

    AccountLogin_ShowUserAgreements();

    local serverName = GetServerName();

    if(serverName) then

        AccountLoginRealmName:SetText(serverName);

    else

        AccountLoginRealmName:Hide()

    end

    local accountName = GetSavedAccountName();

    AccountLoginAccountEdit:SetText(accountName);

    AccountLoginPasswordEdit:SetText("");

    if ( accountName == "" ) then

        AccountLogin_FocusAccountName();

    else

        AccountLogin_FocusPassword();

    end

end

function AccountLogin_FocusPassword()

    AccountLoginPasswordEdit:SetFocus();

end

function AccountLogin_FocusAccountName()

    AccountLoginAccountEdit:SetFocus();

end

function AccountLogin_OnChar()

end

function AccountLogin_OnKeyDown()

    if ( arg1 == "ESCAPE" ) then

        if ( ConnectionHelpFrame:IsVisible() ) then

            ConnectionHelpFrame:Hide();

            AccountLoginUI:Show();

        elseif ( SurveyNotificationFrame:IsVisible() ) then

            -- do nothing

        else

            AccountLogin_Exit();

        end

    elseif ( arg1 == "ENTER" ) then

        if ( not TOSAccepted() ) then

            return;

        elseif ( TOSFrame:IsVisible() or ConnectionHelpFrame:IsVisible() ) then

            return;

        elseif ( SurveyNotificationFrame:IsVisible() ) then

            AccountLogin_SurveyNotificationDone(1);

        end

        AccountLogin_Login();

    elseif ( arg1 == "PRINTSCREEN" ) then

        Screenshot();

    end

end

function AccountLogin_OnEvent(event)

    if ( event == "SHOW_SERVER_ALERT" ) then

        ServerAlertText:SetText(arg1);

        ServerAlertScrollFrame:UpdateScrollChildRect();

        ServerAlertFrame:Show();

    elseif ( event == "SHOW_SURVEY_NOTIFICATION" ) then

        AccountLogin_ShowSurveyNotification();

    end

end

function AccountLogin_Login()

    PlaySound("gsLogin");

    DefaultServerLogin(AccountLoginAccountEdit:GetText(), AccountLoginPasswordEdit:GetText());

    AccountLoginPasswordEdit:SetText("");

    if ( AccountLoginSaveAccountName:GetChecked() ) then

        SetSavedAccountName(AccountLoginAccountEdit:GetText());

    else

        SetSavedAccountName("");

    end

end

function AccountLogin_ManageAccount()

    PlaySound("gsLoginNewAccount");

    LaunchURL(AUTH_NO_TIME_URL);

end

function AccountLogin_LaunchCommunitySite()

    PlaySound("gsLoginNewAccount");

    LaunchURL(COMMUNITY_URL);

end

function AccountLogin_Credits()

    if ( not GlueDialog:IsVisible() ) then

        PlaySound("gsTitleCredits");

        SetGlueScreen("credits");

    end

end

function AccountLogin_Cinematics()

    if ( not GlueDialog:IsVisible() ) then

        PlaySound("gsTitleIntroMovie");

        SetGlueScreen("movie");

    end

end

function AccountLogin_Options()

    PlaySound("gsTitleOptions");

end

function AccountLogin_Exit()

    PlaySound("gsTitleQuit");

    QuitGame();

end

function AccountLogin_ShowSurveyNotification()

    GlueDialog:Hide();

    AccountLoginUI:Hide();

    SurveyNotificationAccept:Enable();

    SurveyNotificationDecline:Enable();

    SurveyNotificationFrame:Show();

end

function AccountLogin_SurveyNotificationDone(accepted)

    SurveyNotificationFrame:Hide();

    SurveyNotificationAcceptBig Grinisable();

    SurveyNotificationDeclineBig Grinisable();

    SurveyNotificationDone(accepted);

    AccountLoginUI:Show();

end

function AccountLogin_ShowUserAgreements()

    TOSScrollFrame:Hide();

    EULAScrollFrame:Hide();

    ScanningScrollFrame:Hide();

    ContestScrollFrame:Hide();

    TOSText:Hide();

    EULAText:Hide();

    ScanningText:Hide();

    if ( not EULAAccepted() ) then

        if ( ShowEULANotice() ) then

            TOSNotice:SetText(EULA_NOTICE);

            TOSNotice:Show();

        end

        AccountLoginUI:Hide();

        TOSFrame.noticeType = "EULA";

        TOSFrameTitle:SetText(EULA_FRAME_TITLE);

        TOSFrameHeader:SetWidth(TOSFrameTitle:GetWidth() + 310);

        EULAScrollFrame:Show();

        EULAText:Show();

        TOSFrame:Show();

    elseif ( not TOSAccepted() ) then

        if ( ShowTOSNotice() ) then

            TOSNotice:SetText(TOS_NOTICE);

            TOSNotice:Show();

        end

        AccountLoginUI:Hide();

        TOSFrame.noticeType = "TOS";

        TOSFrameTitle:SetText(TOS_FRAME_TITLE);

        TOSFrameHeader:SetWidth(TOSFrameTitle:GetWidth() + 310);

        TOSScrollFrame:Show();

        TOSText:Show();

        TOSFrame:Show();

    elseif ( not ScanningAccepted() and SHOW_SCANNING_AGREEMENT ) then

        if ( ShowScanningNotice() ) then

            TOSNotice:SetText(SCANNING_NOTICE);

            TOSNotice:Show();

        end

        AccountLoginUI:Hide();

        TOSFrame.noticeType = "SCAN";

        TOSFrameTitle:SetText(SCAN_FRAME_TITLE);

        TOSFrameHeader:SetWidth(TOSFrameTitle:GetWidth() + 310);

        ScanningScrollFrame:Show();

        ScanningText:Show();

        TOSFrame:Show();

    elseif ( not ContestAccepted() and SHOW_CONTEST_AGREEMENT ) then

        if ( ShowContestNotice() ) then

            TOSNotice:SetText(CONTEST_NOTICE);

            TOSNotice:Show();

        end

        AccountLoginUI:Hide();

        TOSFrame.noticeType = "CONTEST";

        TOSFrameTitle:SetText(CONTEST_FRAME_TITLE);

        TOSFrameHeader:SetWidth(TOSFrameTitle:GetWidth() + 310);

        ContestScrollFrame:Show();

        ContestText:Show();

        TOSFrame:Show();

    else

        AccountLoginUI:Show();

        TOSFrame:Hide();

    end

end

-- Virtual keypad functions

function VirtualKeypadFrame_OnEvent(event)

    if ( event == "PLAYER_ENTER_PIN" ) then

        for i=1, 10 do

            getglobal("VirtualKeypadButton"..i):SetText(getglobal("arg"..i));

        end

    end

    -- Randomize location to prevent hacking (yeah right)

    local xPadding = 5;

    local yPadding = 10;

    local xPos = random(xPadding, GlueParent:GetWidth()-VirtualKeypadFrame:GetWidth()-xPadding);

    local yPos = random(yPadding, GlueParent:GetHeight()-VirtualKeypadFrame:GetHeight()-yPadding);

    VirtualKeypadFrame:SetPoint("TOPLEFT", GlueParent, "TOPLEFT", xPos, -yPos);

    VirtualKeypadFrame:Show();

    VirtualKeypad_UpdateButtons();

end

function VirtualKeypadButton_OnClick()

    local text = VirtualKeypadText:GetText();

    if ( not text ) then

        text = "";

    end

    VirtualKeypadText:SetText(text.."*");

    VirtualKeypadFrame.PIN = VirtualKeypadFrame.PIN..this:GetID();

    VirtualKeypad_UpdateButtons();

end

function VirtualKeypadOkayButton_OnClick()

    local PIN = VirtualKeypadFrame.PIN;

    local numNumbers = strlen(PIN);

    local pinNumber = {};

    for i=1, MAX_PIN_LENGTH do

        if ( i <= numNumbers ) then

            pinNumber = strsub(PIN,i,i);
        else
            pinNumber = nil;
        end
    end
    PINEntered(pinNumber[1] , pinNumber[2], pinNumber[3], pinNumber[4], pinNumber[5], pinNumber[6], pinNumber[7], pinNumber[8], pinNumber[9], pinNumber[10]);
    VirtualKeypadFrame:Hide();
end

function VirtualKeypad_UpdateButtons()
    local numNumbers = strlen(VirtualKeypadFrame.PIN);
    if ( numNumbers >= 4 and numNumbers <= MAX_PIN_LENGTH ) then
        VirtualKeypadOkayButton:Enable();
    else
        VirtualKeypadOkayButtonBig Grinisable();
    end
    if ( numNumbers == 0 ) then
        VirtualKeypadBackButtonBig Grinisable();
    else
        VirtualKeypadBackButton:Enable();
    end
    if ( numNumbers >= MAX_PIN_LENGTH ) then
        for i=1, MAX_PIN_LENGTH do
            getglobal("VirtualKeypadButton"..i)Big Grinisable();
        end
    else
        for i=1, MAX_PIN_LENGTH do
            getglobal("VirtualKeypadButton"..i):Enable();
        end
    end
end
 

 

rektbyfaith
Administrator
0
12-18-2016, 09:13 PM
#2
Archived author: wungasaurus • Posted: 2016-12-18T21:13:47+00:00
Original source

Cameras are in the m2: https://wowdev.wiki/M2#Cameras

There might be some camera modifiers in lua though, but I wouldn't know about those being used in login.
rektbyfaith
12-18-2016, 09:13 PM #2

Archived author: wungasaurus • Posted: 2016-12-18T21:13:47+00:00
Original source

Cameras are in the m2: https://wowdev.wiki/M2#Cameras

There might be some camera modifiers in lua though, but I wouldn't know about those being used in login.

rektbyfaith
Administrator
0
12-18-2016, 09:39 PM
#3
Archived author: Uthil • Posted: 2016-12-18T21:39:47+00:00
Original source

I manage to pull it out and thanks to mateo from modcraft that had a more updated version of the m2 template i can see now the cameras and make the fixes that i want.

[Image: WoWScrnShot_121816_233455.thumb.jpg.06c3...2716c4.jpg]
rektbyfaith
12-18-2016, 09:39 PM #3

Archived author: Uthil • Posted: 2016-12-18T21:39:47+00:00
Original source

I manage to pull it out and thanks to mateo from modcraft that had a more updated version of the m2 template i can see now the cameras and make the fixes that i want.

[Image: WoWScrnShot_121816_233455.thumb.jpg.06c3...2716c4.jpg]

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