Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function makestats()
- createMiniConsole("AffectsWindow",700,0,420,300)
- setMiniConsoleFontSize("AffectsWindow", 9)
- setBackgroundColor("AffectsWindow",20,0,0,255)
- end
- function makechat()
- WindowWidth = 0;
- WindowHeight = 0;
- WindowWidth, WindowHeight = getMainWindowSize();
- createMiniConsole("Chats", 0,0,0,0)
- moveWindow("Chats", WindowWidth-650,0)
- resizeWindow("Chats", 650,300)
- setBackgroundColor("Chats",0,0,0,0)
- setMiniConsoleFontSize("Chats", 8)
- -- wrap lines in window "Chats" at 40 characters per line
- setWindowWrap("Chats", 80)
- setMiniConsoleFontSize("Chats", 10)
- -- set default font colors and font style for window "Chats"
- setTextFormat("Chats",0,0,0,255,255,255,0,0,0)
- end
- function resizeextra()
- makechat()
- makestats()
- end
- function keepStaticSize()
- setMainWindowSize(1280,720)
- end -- keepStaticSize
- registerAnonymousEventHandler("sysWindowResizeEvent", "resizeextra")
- function UpdateSStats()
- clearWindow("AffectsWindow")
- echo("AffectsWindow","\nAffects\n--------\n")
- for k,v in pairs(msdp.AFFECTS) do
- if (k ~= "item-generated") then
- if k ~= "class" then
- echo("AffectsWindow",string.format("%-20s",string.upper(k))..string.format("%5s",os.date("*t",v).min..":"..os.date("%S",v)).."\n")
- end
- end
- end
- echo("AffectsWindow","----------------\n")
- echo("AffectsWindow","Health: "..msdp.HEALTH.."\n")
- echo("AffectsWindow","Mana: "..msdp.MANA.."\n")
- echo("AffectsWindow","Movement: "..msdp.MOVEMENT.."\n")
- echo("AffectsWindow",msdp.AREA_NAME..": "..msdp.ROOM_NAME.." ["..msdp.ROOM_VNUM.."]\n")
- if myop ~= false then
- echo("AffectsWindow","Opponent: "..msdp.OPPONENT_NAME.."\n")
- end
- end
- function makestats()
- createMiniConsole("AffectsWindow",700,0,420,300)
- setMiniConsoleFontSize("AffectsWindow", 9)
- setBackgroundColor("AffectsWindow",20,0,0,255)
- end
- function makechat()
- WindowWidth = 0;
- WindowHeight = 0;
- WindowWidth, WindowHeight = getMainWindowSize();
- createMiniConsole("Chats", 0,0,0,0)
- moveWindow("Chats", WindowWidth-650,0)
- resizeWindow("Chats", 650,300)
- setBackgroundColor("Chats",0,0,0,0)
- setMiniConsoleFontSize("Chats", 8)
- -- wrap lines in window "Chats" at 40 characters per line
- setWindowWrap("Chats", 80)
- setMiniConsoleFontSize("Chats", 10)
- -- set default font colors and font style for window "Chats"
- setTextFormat("Chats",0,0,0,255,255,255,0,0,0)
- end
- function resizeextra()
- makechat()
- makestats()
- end
- registerAnonymousEventHandler("sysWindowResizeEvent", "resizeextra")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement