world
icon_size = 32
view = "52x30"
client
control_freak=1
perspective = EDGE_PERSPECTIVE
obj/Hud
icon='Hud.dmi'
Exit
icon_state="Exit"
screen_loc = "61,35"
New(client/E)
E.screen+=src
Click()
winset(usr,"Main","titlebar=true")
usr.Logout()
Min
icon_state="Min"
screen_loc = "60,35"
New(client/M)
M.screen+=src
Click()
winset(usr,"Main","is-minimized=true")
LoginGame()
set hidden = 1
var/Username = lowertext(winget(usr,"UserName","text"))
var/Password = lowertext(winget(usr,"PassWord","text"))
var/hash=md5(Password)
var/DBConnection/dbcon=new()
var/connected=dbcon.Connect(DBI,Database_Username,Database_Password)
if(!connected)
alert(src,"Connection failed: [dbcon.ErrorMsg()]")
return
var/DBQuery/qr = dbcon.NewQuery("SELECT * FROM `[Database_DB]`.`general` WHERE `accountname`='[Username]';")
qr.Execute()
if(qr.RowCount()>0)
while(qr.NextRow())
var/list/row_data = qr.GetRowData()
if(row_data["accountname"] == Username && row_data["password"] == hash)
winset(usr,"UserName","text='Connection successfull.'")
winset(usr,"Main","is-visible=true")
winset(usr,"Main","is-default=true")
winset(usr,"Login","is-default=false")
winset(usr,"Login","is-visible=false")
winset(usr,"Main","is-maximized=true")
winset(usr,"Main","focus=true")
usr.User=Username
usr.Pass=Password
usr.Load()
usr.loc=locate(31,19,1)
new/obj/Hud/Exit(src.client)
new/obj/Hud/Min(src.client)
qr.Close()
dbcon.Disconnect()
Problem description: Interface is set to Icon size(inpixels) = 32
I run a res of 1920x1080 and i have everything every where i want it but when i goto a lower res computer the on screen objs moves and or disappear and the map moves or widens to the point you can see stuff that needs to be seen especially on login.
http://www.byond.com/forum/?post=2189366
screen_loc anchors allow you to anchor things based on the viewport size.