ID:2306082
 
(See the best response by Ter13.)
Code:
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.

note during login it full screens the main window and rids the title bar




512 just launched. It has a feature you are gonna need:

http://www.byond.com/forum/?post=2189366

screen_loc anchors allow you to anchor things based on the viewport size.
In response to Ter13
Ter13 wrote:
512 just launched. It has a feature you are gonna need:

http://www.byond.com/forum/?post=2189366

screen_loc anchors allow you to anchor things based on the viewport size.

Using North,East for one and North,98% for the other the one that is set to North east is half off the screen but the North,98% is where the North,east is suppose to be when i goto a lower res but they work perfect when im on my high res

Did you read the thread I linked?
Also, a discussion about handling varying resolutions happened earlier this month:

http://www.byond.com/forum/?post=2301165

The two threads I linked have everything you need in them.
In response to Ter13
yes and i even went and downloaded the beta and read the F1 screen_loc that lux says in his last sentence
LEFT, RIGHT, TOP, BOTTOM, not NORTH,98%
In response to Ter13
Ter13 wrote:
LEFT, RIGHT, TOP, BOTTOM, not NORTH,98%

already fixed the onscreen obj problem now i'm working on fixing the map obj problems that go off screen when resolution changes.

almost got it though
Best response
http://www.byond.com/forum/?post=2301165

You need to adjust your view sizes and zoom responding to changes in window size.

I linked this to you above earlier. Read it.