Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------
- -- Put your Lua functions here. --
- -- --
- -- Note that you can also use external Scripts --
- -------------------------------------------------
- function makegui()
- setBorderLeft(150)
- left_container = Geyser.Container:new({
- name = "left_container", -- give it a unique name here
- x=0, y=0, -- have it start at the top-left corner of mudlet
- width = "100%", height="100%", color = "red" -- with a width of 200, and a height of the full screen, hence 100%
- })
- testlabel = Geyser.Label:new({
- name = "testlabel",
- x = "80%", y = 0,
- width = "50%", height = "100%",
- fgColor = "black",
- color = "SeaGreen",
- message = [[<td valign="bottom">heey<td>]]
- },left_container)
- magistacksbox = Geyser.Label:new({
- name = "magistacksbox",
- x = "0%", y = "40%",
- width = 150, height = "30%",
- fgColor = "black",
- color = "white",
- },left_container)
- magistacksbox:setStyleSheet([[qproperty-alignment: 'AlignTop';]])
- magistacksbox:setFontSize( 12)
- magistacksbox:setColor("grey")
- testlabel:setColor("red")
- testlabel:echo("testing")
- testlabel:echo([[<p style="color: blue">Some blue text.</p>]])
- clearWindow("testlabel")
- myaffwindow = Geyser.Label:new({
- name = "myaffwindow",
- x = "0%", y = "10%",
- width = 75, height = "30%",
- fgColor = "black",
- color = "white",
- },left_container)
- myaffwindow:setStyleSheet([[qproperty-alignment: 'AlignTop';]])
- myaffwindow:setColor("grey")
- myaffwindow:setFontSize( 10)
- mystatwindow = Geyser.Label:new({
- name = "mystatwindow",
- x = 75, y = "10%",
- width = 75, height = "30%",
- fgColor = "black",
- color = "white",
- },left_container)
- mystatwindow:setStyleSheet([[qproperty-alignment: 'AlignTop';]])
- mystatwindow:setColor("grey")
- mystatwindow:setFontSize( 10)
- AIbox = Geyser.Label:new({
- name = "AIbox",
- x = "0%", y = "70%",
- width = 150, height = "20%",
- fgColor = "black",
- color = "white",
- },left_container)
- AIbox:setStyleSheet([[qproperty-alignment: 'AlignTop';]])
- AIbox:setFontSize( 8)
- AIbox:setColor("grey")
- playbox = Geyser.Label:new({
- name = "playbox",
- x = "70%", y = "50%",
- width = "20%", height = "40%",
- fgColor = "black",
- color = "white",
- },left_container)
- playbox:setStyleSheet([[qproperty-alignment: 'AlignTop';]])
- playbox:setFontSize( 5)
- playbox:setColor("white")
- hideWindow("playbox")
- hideWindow("testlabel")
- end
- makegui()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement