Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#CLIENTSIDE
- function Tools.onSelect(temp.i) {
- if (row == 0){
- Player.chat = this.items[temp.i][0] SPC "Selected";
- }
- }
- this.tools = {
- {
- "Boots", 1, "no-icon.gif"
- }, {
- "a", 2, "no-icon.gif"
- }
- };
- function onCreated() {
- new GuiWindowCtrl("MyGUI_Window1") {
- profile = GuiBlueWindowProfile;
- clientrelative = true;
- clientextent = "180,218";
- canmove = true;
- canresize = true;
- closequery = false;
- destroyonhide = false;
- text = "Tools";
- x = 1170;
- new GuiScrollCtrl("Test_ListScroll") {
- profile = GuiBlueScrollProfile;
- x = 10;
- y = 10;
- width = 160;
- height = 80;
- hScrollBar = "dynamic";
- vScrollBar = "dynamic";
- new GuiTextListCtrl("Test_List") {
- profile = GuiBlueTextListProfile;
- x = y = 0;
- width = 140;
- fitparentwidth = true;
- clearrows();
- for (temp.i: thiso.tools) {
- addrow(temp.n, temp.i[0]);
- temp.n++;
- }
- setSelectedRow(0);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement