[GSoC Uni_] Sign-In Dialog fixed. Removed debug code in http_connector.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@12973 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
7e36035228
commit
18828d5668
@ -5,30 +5,33 @@
|
|||||||
<header id="title" width="96%" proportion="2" text_align="center" word_wrap="true"
|
<header id="title" width="96%" proportion="2" text_align="center" word_wrap="true"
|
||||||
I18N="In the login dialog' dialog" text="Sign in"/>
|
I18N="In the login dialog' dialog" text="Sign in"/>
|
||||||
|
|
||||||
<spacer proportion="2">
|
<spacer height="50" width="50">
|
||||||
|
|
||||||
<div width="95%" proportion="3" layout="horizontal-row" >
|
<div width="80%" align="center" layout="vertical-row" proportion="4">
|
||||||
<label proportion="1" text_align="center" I18N="In the login form" text="Username"/>
|
<div width="100%" height="fit" layout="horizontal-row" >
|
||||||
<textbox proportion="2" id="username" I18N="In the login dialog"/>
|
<label proportion="1" text_align="left" I18N="In the login form" text="Username"/>
|
||||||
|
<textbox proportion="2" id="username" I18N="In the login dialog"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<spacer height="20" width="20">
|
||||||
|
|
||||||
|
<div width="100%" height="fit" layout="horizontal-row" >
|
||||||
|
<label proportion="1" text_align="left" I18N="In the login form" text="Password"/>
|
||||||
|
<textbox proportion="2" id="password" I18N="In the login dialog"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<spacer proportion="1">
|
<label id="info" proportion="2" width="90%" align="center" text_align="center" word_wrap="true"
|
||||||
|
|
||||||
<div width="95%" proportion="3" layout="horizontal-row" >
|
|
||||||
<label proportion="1" text_align="center" I18N="In the login form" text="Password"/>
|
|
||||||
<textbox proportion="2" id="password" I18N="In the login dialog"/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<label id="info" proportion="1" width="96%" text_align="center" word_wrap="true"
|
|
||||||
I18N="In the login dialog' dialog" text=""/>
|
I18N="In the login dialog' dialog" text=""/>
|
||||||
|
|
||||||
<spacer proportion="1">
|
<spacer height="20" width="50">
|
||||||
|
|
||||||
<div id="options" width="fit" proportion="3" align="center" layout="horizontal-row">
|
<div id="options" width="fit" height="fit" align="center" layout="horizontal-row">
|
||||||
<button id="signin" height="100%" proportion="4" I18N="In the login dialog" text="Sign In"/>
|
<button id="signin" height="100%" align="center" width="fit" I18N="In the login dialog" text="Sign In"/>
|
||||||
<spacer proportion="1" height="100%">
|
<spacer height="50" width="50">
|
||||||
<button id="cancel" height="100%" proportion="4" I18N="In the login dialog" text="Cancel"/>
|
<button id="signup" height="100%" align="center" width="fit" I18N="In the login dialog" text="Register"/>
|
||||||
|
<spacer height="50" width="50">
|
||||||
|
<button id="cancel" height="100%" align="center" width="fit" I18N="In the login dialog" text="Cancel"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -48,16 +48,13 @@ class HTTPConnector
|
|||||||
|
|
||||||
//Setting parameters to be send with the next request
|
//Setting parameters to be send with the next request
|
||||||
void setParameter(const std::string & name, const std::string &value){
|
void setParameter(const std::string & name, const std::string &value){
|
||||||
printf("template3");
|
|
||||||
m_parameters[name] = value;
|
m_parameters[name] = value;
|
||||||
};
|
};
|
||||||
void setParameter(const std::string & name, const irr::core::stringw &value){
|
void setParameter(const std::string & name, const irr::core::stringw &value){
|
||||||
printf("template2");
|
|
||||||
m_parameters[name] = irr::core::stringc(value.c_str()).c_str();
|
m_parameters[name] = irr::core::stringc(value.c_str()).c_str();
|
||||||
}
|
}
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void setParameter(const std::string & name, const T& value){
|
void setParameter(const std::string & name, const T& value){
|
||||||
printf("template1");
|
|
||||||
m_parameters[name] = StringUtils::toString(value);
|
m_parameters[name] = StringUtils::toString(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ void OnlineScreen::eventCallback(Widget* widget, const std::string& name,
|
|||||||
|
|
||||||
if (selection == "login")
|
if (selection == "login")
|
||||||
{
|
{
|
||||||
new LoginDialog(0.8f, 0.7f);
|
new LoginDialog(0.6f, 0.7f);
|
||||||
}
|
}
|
||||||
} // eventCallback
|
} // eventCallback
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user