client
verb
resize_map()//Add it in your Skin map Resize command field like resize-map
set hidden = 1
var s = winget(src, "MainWindow.Map", "size")// Set where the map is located
var list/dimensions = dd_text2List(s, "x")
var nx = text2num(dimensions[1]), ny = text2num(dimensions[2])
view = "[round(nx / 32)]x[round(ny / 32)]" // Set whatever View you want the player to have its set to 32. I find 48 and 64 to be good also
proc
dd_text2List(text, separator)
var/textlength = lentext(text)
var/separatorlength = lentext(separator)
var/list/textList = new /list()
var/searchPosition = 1
var/findPosition = 1
var/buggyText
while (1) // Loop forever.
findPosition = findtextEx(text, separator, searchPosition, 0)
buggyText = copytext(text, searchPosition, findPosition) // Everything from searchPosition to findPosition goes into a list element.
textList += "[buggyText]" // Working around weird problem where "text" != "text" after this copytext().
searchPosition = findPosition + separatorlength // Skip over separator.
if (findPosition == 0) // Didn't find anything at end of string so stop here.
return textList
else
if (searchPosition > textlength) // Found separator at very end of string.
textList += "" // So add empty element.
return textList
Problem description:
Hey. Im using resize_map for reizing my map. It works fine. But the problems are Huds like for example bag
Bag
icon = 'Hud.dmi'
icon_state="Bag"
New(client/C)
screen_loc = "29:-5,1:5"
How can I set Y to increse same as the map view Y.