Guest User

Untitled

a guest
Jan 6th, 2013
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1. function layout()
  2.  
  3. setBorderLeft(210)
  4. left_container = Geyser.Container:new({
  5. name = "left_container", -- give it a unique name here
  6. x=0, y=0, -- have it start at the top-left corner of mudlet
  7. width = 200, height="100%", -- with a width of 200, and a height of the full screen, hence 100%
  8. })
  9.  
  10. setBorderRight(210)
  11. right_container = Geyser.Container:new({
  12. name = "right_container", -- give it a unique name here
  13. x=0, y=0, -- have it start at the top-left corner of mudlet
  14. width = 200, height="100%", -- with a width of 200, and a height of the full screen, hence 100%
  15. })
  16.  
  17. setBorderTop(100)
  18. top_container = Geyser.Container:new({
  19. name = "top_container", -- give it a unique name here
  20. x=0, y=0, -- have it start at the top-left corner of mudlet
  21. width ="100%", height= 100, -- with a width of 200, and a height of the full screen, hence 100%
  22. })
  23.  
  24. setBorderBottom(100)
  25. bottom_container = Geyser.Container:new({
  26. name = "bottom_container", -- give it a unique name here
  27. x=0, y=0, -- have it start at the top-left corner of mudlet
  28. width = "100%", height= 100, -- with a width of 200, and a height of the full screen, hence 100%
  29. })
  30.  
  31.  
  32. Top_Border = Geyser.Label:new({
  33. name = "Top_Border",
  34. x = "15%", y = "0%",
  35. width = "70%", height = "95%",
  36. message = [[<center><font size=40>SLOTHMUD - A RETURN TO ITS ORIGINS</font></center>]]
  37. }, top_container)
  38. Top_Border:setStyleSheet([[
  39. background-color: black;
  40. border-width: 2px;
  41. border-style: solid;
  42. border-color: grey;
  43. border-radius: 10px;
  44. font: bold "Monospace";
  45. font-size: 14px;
  46. ]])
  47.  
  48. Locations = Geyser.Label:new({
  49. name = "Locations",
  50. x = "0%", y = "0%",
  51. width = "100%", height = "25%"
  52. }, left_container)
  53. Locations:setStyleSheet([[
  54. background-color: black;
  55. border-width: 2px;
  56. border-style: solid;
  57. border-color: grey;
  58. border-radius: 10px;
  59. font: bold "Monospace";
  60. font-size: 1px;
  61.  
  62. ]])
  63. Locations:echo("LOCATION INFORMATION:<br><hr><br>Continent:"..atcp.MSDPCONTINENT.."<hr>Area: "..atcp.MSDPAREA_NAME.."<hr>Room: "..atcp.MSDPROOM_NAME.."<hr>Exits: "..atcp.MSDPROOM_EXITS.."<hr>Terrain: "..atcp.MSDPTERRAIN.."<hr>Room ID: "..atcp.MSDPROOM_VNUM)
  64.  
  65. Grouping = Geyser.Label:new({
  66. name = "Grouping",
  67. x = "0%", y = "25%",
  68. width = "100%", height = "35%"
  69. }, left_container)
  70. Grouping:setStyleSheet([[
  71. background-color: black;
  72. border-width: 2px;
  73. border-style: solid;
  74. border-color: grey;
  75. border-radius: 10px;
  76. font: bold "Monospace";
  77. font-size: 4px;
  78.  
  79. ]])
  80. Grouping:echo("GROUP FIGHTING:<br><hr><br>Group Leader: "..atcp.MSDPGROUP_LEADER.."<hr>Tank Name: "..atcp.MSDPTANK_NAME.."<hr>Tank Health: "..atcp.MSDPTANK_HEALTH.."/"..atcp.MSDPTANK_HEALTH_MAX.."<hr>Tank Level: "..atcp.MSDPTANK_LEVEL.."<hr><br>Enemy: "..atcp.MSDPOPPONENT_NAME.."<hr>Level: "..atcp.MSDPOPPONENT_LEVEL.."<hr>Health: "..atcp.MSDPOPPONENT_HEALTH.."/"..atcp.MSDPOPPONENT_HEALTH_MAX)
  81. --echo("Grouping", "[[<p style="font-family: monospace; font-size:small;">]][[GROUP FIGHTING: <br>==============<br>Group Leader: ]]..atcp.MSDPGROUP_LEADER..[[<br>Tank Name: ]]..atcp.MSDPTANK_NAME..[[<br>Tank Health: ]]..atcp.MSDPTANK_HEALTH..[[/]]..atcp.MSDPTANK_HEALTH_MAX..[[<br>Tank Level: ]]..atcp.MSDPTANK_LEVEL..[[<br><br>Enemy: ]]..atcp.MSDPOPPONENT_NAME..[[<br>Level: ]]..atcp.MSDPOPPONENT_LEVEL..[[<br>Health: ]]..atcp.MSDPOPPONENT_HEALTH..[[/]]..atcp.MSDPOPPONENT_HEALTH_MAX[[</p>]])
  82.  
  83. Statistics = Geyser.Label:new({
  84. name = "Statistics",
  85. x = "580%", y = "0%",
  86. width = "100%", height = "100%"
  87. }, right_container)
  88. Statistics:setStyleSheet([[
  89. background-color: black;
  90. border-width: 2px;
  91. border-style: solid;
  92. border-color: grey;
  93. border-radius: 10px;
  94. font: bold "Monospace";
  95. font-size: 6px;
  96. ]])
  97. Statistics:echo("STATS INFORMATION:<hr>Name: "..atcp.MSDPCHARACTER_NAME.."<br>Citizen of "..atcp.MSDPCITIZEN.."<br> Your alignment is: "..atcp.MSDPALIGNMENT.."<br>Sex: "..atcp.MSDPSEX.."<hr>Money: "..atcp.MSDPMONEY.."<br>Drachma: "..atcp.MSDPDRACHMA.."<hr>Levels:<br>"..atcp.MSDPCLASS.." "..atcp.MSDPLEVEL.." "..atcp.MSDPCLASS_SEC.." "..atcp.MSDPLEVEL_SEC.." "..atcp.MSDPCLASS_TER.." "..atcp.MSDPLEVEL_TER.." "..atcp.MSDPCLASS_QUA.." "..atcp.MSDPLEVEL_QUA.."<br>"..atcp.MSDPCLASS_QUI.." "..atcp.MSDPLEVEL_QUI.." "..atcp.MSDPCLASS_HEX.." "..atcp.MSDPLEVEL_HEX.." "..atcp.MSDPCLASS_SEP.." "..atcp.MSDPLEVEL_SEP.." "..atcp.MSDPCLASS_OCT.." "..atcp.MSDPLEVEL_OCT.."<br>Avatar: "..atcp.MSDPCLASS_AVA.." "..atcp.MSDPLEVEL_AVA.."<hr> Experience: "..atcp.MSDPEXPERIENCE.."<hr>Health: "..atcp.MSDPHEALTH.." / "..atcp.MSDPHEALTH_MAX.."<hr> Mana: "..atcp.MSDPMANA.." / "..atcp.MSDPMANA_MAX.."<hr> Moves: "..atcp.MSDPMOVEMENT.." / "..atcp.MSDPMOVEMENT_MAX.."<hr> AC: "..atcp.MSDPAC.."<hr> HONOR: "..atcp.MSDPHONOR.."<hr> STR:"..atcp.MSDPSTR.."/"..atcp.MSDPSTR_PERM.." CON:"..atcp.MSDPCON.."/"..atcp.MSDPCON_PERM.."<br> DEX:"..atcp.MSDPDEX.."/"..atcp.MSDPDEX_PERM.." WIS:"..atcp.MSDPWIS.."/"..atcp.MSDPWIS_PERM.."<br>INT:"..atcp.MSDPINT.."/"..atcp.MSDPINT_PERM.." CHAR:"..atcp.MSDPCHARISMA.."/"..atcp.MSDPCHARISMA_CAP.."<hr>Spells and Damage:<br>Weapon Damage: "..atcp.MSDPWEAPON_DAM.."<br>Stab Damage: "..atcp.MSDPSTAB_DAM.."/"..atcp.MSDPSTAB_DAM_CAP.."<br>Hand Damage: "..atcp.MSDPHAND_DAM.."/"..atcp.MSDPHAND_DAM_CAP.."<br> Undead Cont: "..atcp.MSDPUNDEAD_CONT.."/"..atcp.MSDPUNDEAD_CONT_CAP.."<br>Spell Bonus: "..atcp.MSDPSPELL_BONUS.."/"..atcp.MSDPSPELL_BONUS_CAP.."<br>Heal Bonus: "..atcp.MSDPHEAL_BONUS.."/"..atcp.MSDPHEAL_BONUS_CAP.."<hr>Hitroll: "..atcp.MSDPHITROLL.."<hr>Damroll: "..atcp.MSDPDAMROLL.."<hr>Damage Red: "..atcp.MSDPDAM_RED.."/"..atcp.MSDPDAM_RED_CAP)
  98.  
  99.  
  100. end
Advertisement
Add Comment
Please, Sign In to add comment