You last visited: Today at 00:31
Advertisement
loginwindow.py [HILFE]
Discussion on loginwindow.py [HILFE] within the Metin2 Private Server forum part of the Metin2 category.
11/14/2011, 14:40
#1
elite*gold: 149
Join Date: Feb 2010
Posts: 1,298
Received Thanks: 346
loginwindow.py [HILFE]
Hallo,
ich benötige Hilfe beim entfernen der Account-Daten speicher so wie der Autologin Funktion. Ich will diese nämlich entfernen...
Code:
import uiScriptLocale
LOCALE_PATH = uiScriptLocale.LOGIN_PATH
#Big-List
#SERVER_BOARD_HEIGHT = 180 + 3
#SERVER_LIST_HEIGHT = 171 + 3
#Small list like german
SERVER_BOARD_HEIGHT = 220 + 1
SERVER_LIST_HEIGHT = 171 + 1
SERVER_BOARD_WEIGHT = 375
window = {
"name" : "LoginWindow",
"sytle" : ("movable",),
"x" : 0,
"y" : 0,
"width" : SCREEN_WIDTH,
"height" : SCREEN_HEIGHT,
"children" :
(
## Board
{
"name" : "bg1", "type" : "expanded_image", "x" : 0, "y" : 0,
"x_scale" : float(SCREEN_WIDTH) / 1920.0, "y_scale" : float(SCREEN_HEIGHT) / 1080.0,
"image" : "locale/de/ui/serverlist.sub",
},
{
"name" : "bg2", "type" : "expanded_image", "x" : 0, "y" : 0,
"x_scale" : float(SCREEN_WIDTH) / 1920.0, "y_scale" : float(SCREEN_HEIGHT) / 1080.0,
"image" : "locale/de/ui/login.sub",
},
## ConnectBoard
{
"name" : "ConnectBoard",
"type" : "thinboard",
"x" : (SCREEN_WIDTH - 565) / 2,
"y" : (SCREEN_HEIGHT - 410 + 80),
"width" : 208,
"height" : 47,
"children" :
(
{
"name" : "ConnectName",
"type" : "text",
"x" : 15,
"y" : 0,
"vertical_align" : "center",
"text_vertical_align" : "center",
"text" : uiScriptLocale.LOGIN_DEFAULT_SERVERADDR,
},
{
"name" : "SelectConnectButton",
"type" : "button",
"x" : 150,
"y" : 0,
"vertical_align" : "center",
"tooltip_text" : "Server auswählen",
"default_image" : "d:/ymir work/ui/public/small_button_01.sub",
"over_image" : "d:/ymir work/ui/public/small_button_02.sub",
"down_image" : "d:/ymir work/ui/public/small_button_03.sub",
"text" : uiScriptLocale.LOGIN_SELECT_BUTTON,
},
),
},
## LoginBoard
{
"name" : "LoginBoard",
"type" : "image",
"x" : (SCREEN_WIDTH - 145) / 2,
"y" : (SCREEN_HEIGHT - 410 + 30),
"image" : LOCALE_PATH + "loginwindow.sub",
"children" :
(
{
"name" : "ID_EditLine",
"type" : "editline",
"x" : 77,
"y" : 16,
"width" : 120,
"height" : 18,
"input_limit" : 16,
"enable_codepage" : 0,
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
},
{
"name" : "Password_EditLine",
"type" : "editline",
"x" : 77,
"y" : 43,
"width" : 120,
"height" : 18,
"input_limit" : 16,
"secret_flag" : 1,
"enable_codepage" : 0,
"r" : 1.0,
"g" : 1.0,
"b" : 1.0,
"a" : 1.0,
},
{
"name" : "LoginButton",
"type" : "button",
"x" : 15,
"y" : 65,
"tooltip_text" : "Einloggen",
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
"text" : uiScriptLocale.LOGIN_CONNECT,
},
{
"name" : "LoginExitButton",
"type" : "button",
"x" : 105,
"y" : 65,
"tooltip_text" : "Login Abbrechen",
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
"text" : uiScriptLocale.LOGIN_EXIT,
},
),
},
## SaveBoard
{
"name" : "SaveBoard",
"type" : "thinboard",
"x" : (SCREEN_WIDTH - 565) / 2,
"y" : (SCREEN_HEIGHT - 380),
"width" : 208,
"height" : 50,
"children" :
(
{
"name" : "SaveText",
"type" : "text",
"x" : 45,
"y" : - 15,
"vertical_align" : "center",
"text_vertical_align" : "center",
"text" : "Account Daten Speichern?",
},
{
"name" : "SaveButton",
"type" : "button",
"x" : 55,
"y" : 24,
"tooltip_text" : "Account Daten Speichern",
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
"text" : "Speichern",
},
),
},
## HideBoard
{
"name" : "HideBoard",
"type" : "thinboard",
"x" : (SCREEN_WIDTH - 1000),
"y" : (SCREEN_HEIGHT + 1000),
"width" : 2,
"height" : 2,
"children" :
(
{
"name" : "HideButton",
"type" : "button",
"vertical_align" : "center",
"horizontal_align" : "center",
"x" : 0,
"y" : 0,
"tooltip_text" : "Virtuelle Tastatur Verstecken",
"default_image" : "d:/ymir work/ui/public/minimize_button_01.sub",
"over_image" : "d:/ymir work/ui/public/minimize_button_02.sub",
"down_image" : "d:/ymir work/ui/public/minimize_button_03.sub",
},
),
},
## ShowBoard
{
"name" : "ShowBoard",
"type" : "thinboard",
"x" : (SCREEN_WIDTH - 1000),
"y" : (SCREEN_HEIGHT + 1000),
"width" : 2,
"height" : 2,
"children" :
(
{
"name" : "ShowButton",
"type" : "button",
"vertical_align" : "center",
"horizontal_align" : "center",
"x" : 0,
"y" : 0,
"tooltip_text" : "Virtuelle Tastatur anzeigen",
"default_image" : "d:/ymir work/ui/public/scrollbar_thin_down_button_01.sub",
"over_image" : "d:/ymir work/ui/public/scrollbar_thin_down_button_02.sub",
"down_image" : "d:/ymir work/ui/public/scrollbar_thin_down_button_03.sub",
},
),
},
## AutoBoard
{
"name" : "AutoBoard",
"type" : "thinboard",
"x" : (SCREEN_WIDTH - 1000),
"y" : (SCREEN_HEIGHT + 1000),
"width" : 145,
"height" : 97,
"children" :
(
{
"name" : "AutoText",
"type" : "text",
"x" : 5,
"y" : 25,
"vertical_align" : "center",
"text_vertical_align" : "center",
"text" : "Automatischer Login",
},
{
"name" : "IdText",
"type" : "text",
"x" : 5,
"y" : - 5,
"vertical_align" : "center",
"text_vertical_align" : "center",
"text" : "Acc Id Speichern?",
},
{
"name" : "PwText",
"type" : "text",
"x" : 5,
"y" : - 35,
"vertical_align" : "center",
"text_vertical_align" : "center",
"text" : "Passwort Speichern?",
},
{
"name" : "IdButton",
"type" : "button",
"x" : 120,
"y" : 40,
"tooltip_text" : "Account ID Speichern",
"default_image" : "d:/ymir work/ui/public/close_button_01.sub",
"over_image" : "d:/ymir work/ui/public/check_image.sub",
"down_image" : "d:/ymir work/ui/public/check_image.sub",
},
{
"name" : "PwButton",
"type" : "button",
"x" : 120,
"y" : 10,
"tooltip_text" : "Passwort Speichern",
"default_image" : "d:/ymir work/ui/public/close_button_01.sub",
"over_image" : "d:/ymir work/ui/public/check_image.sub",
"down_image" : "d:/ymir work/ui/public/check_image.sub",
},
{
"name" : "AutoButton",
"type" : "button",
"x" : 120,
"y" : 65,
"tooltip_text" : "Auto Login",
"default_image" : "d:/ymir work/ui/public/close_button_01.sub",
"over_image" : "d:/ymir work/ui/public/check_image.sub",
"down_image" : "d:/ymir work/ui/public/check_image.sub",
},
),
},
## ServerBoard
{
"name" : "ServerBoard",
"type" : "board",
"x" : 0,
"y" : SCREEN_HEIGHT - SERVER_BOARD_HEIGHT - 72,
"width" : 375,
"height" : SERVER_BOARD_HEIGHT,
"horizontal_align" : "center",
"children" :
(
## Title
{
"name" : "TitleBar",
"type" : "titlebar",
"style" : ("attach",),
"x" : 0,
"y" : 5,
"width" : 375,
"color" : "yellow",
"children" :
(
{ "name":"TitleName", "type":"text", "x":200, "y":3, "text": uiScriptLocale.LOGIN_SELECT_TITLE, "text_horizontal_align":"center" },
),
},
## Horizontal
{
"name" : "HorizontalLine1",
"type" : "line",
"x" : 10,
"y" : 34,
"width" : 354,
"height" : 0,
"color" : 0xff777777,
},
{
"name" : "HorizontalLine2",
"type" : "line",
"x" : 10,
"y" : 35,
"width" : 355,
"height" : 0,
"color" : 0xff111111,
},
## Vertical
{
"name" : "VerticalLine1",
"type" : "line",
"x" : 246,
"y" : 38,
"width" : 0,
"height" : SERVER_LIST_HEIGHT + 4,
"color" : 0xff777777,
},
{
"name" : "VerticalLine2",
"type" : "line",
"x" : 247,
"y" : 38,
"width" : 0,
"height" : SERVER_LIST_HEIGHT + 4,
"color" : 0xff111111,
},
## ListBox
{
"name" : "ServerList",
"type" : "listbox2",
"x" : 10,
"y" : 40,
"width" : 232,
"height" : SERVER_LIST_HEIGHT,
"row_count" : 15,
"item_align" : 0,
},
{
"name" : "ChannelList",
"type" : "listbox",
"x" : 255,
"y" : 40,
"width" : 109,
"height" : SERVER_LIST_HEIGHT,
"item_align" : 0,
},
## Buttons
{
"name" : "ServerSelectButton",
"type" : "button",
"x" : 267,
"y" : SERVER_LIST_HEIGHT,
"tooltip_text" : "Server Auswählen",
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
"text" : uiScriptLocale.OK,
},
{
"name" : "ServerExitButton",
"type" : "button",
"x" : 267,
"y" : SERVER_LIST_HEIGHT + 22,
"tooltip_text" : "Schliessen",
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
"text" : uiScriptLocale.LOGIN_SELECT_EXIT,
},
),
},
),
}
Das ist meine Loginwindos.py
Ich würde gerne den Login-Bildschirm so haben wie bei DE-Client d.h nur Login+Passwort Eingabe und die Virtuelle Tastatur aber ohne Hide und Show-Button.
Ich habe versucht die einzelnen Zeilen in der Datei zu löschen, nur leider hat sich der Client dann nichtmehr geöffnet. Auch eine Loginwindows.py aus einem anderen Client ging nicht.
Hoffe auf Hilfe
11/14/2011, 14:45
#2
elite*gold: 149
Join Date: Feb 2010
Posts: 1,298
Received Thanks: 346
Die loginwindow.py habe ich ja übernommen aber wo liegt die Intrologin.py?
08/19/2012, 15:57
#3
elite*gold: 0
Join Date: Dec 2010
Posts: 9
Received Thanks: 0
Intrologin.py ist in Root.epk/eix
Similar Threads
intrologin.py & loginwindow.py & passworddialog.py - on 2008 client.
02/06/2011 - Metin2 Private Server - 0 Replies
Could any of you change these files so that they acted in the client 2008? They are from the client 2010 by Crank™
//
Könnte einer von euch diese Dateien ändern, so dass sie in der Client 2008 gehandelt hat? Sie werden vom Client 2010 von Crank™
loginwindow.py:
http://pastebin.com/sFyHZpWd
passworddialog.py:
http://pastebin.com/jPV137Fj
intrologin.py:
All times are GMT +2. The time now is 00:31 .