Iris2.de
http://iris2.de/forum/

Client Side Gumps
http://iris2.de/forum/viewtopic.php?f=16&t=1235
Page 1 of 1

Author:  Link_of_Hyrule [ Wed Aug 27, 2008 2:55 am ]
Post subject:  Client Side Gumps

I made the basic House Builder Client side gump it lacks the code to make it works but the graphics are there how they are supose to anyways heres all the files you can open them up in the gumpstudio or edit the .lua file directly hopefully this helps you guys out a little :P

http://www.filedropper.com/housebuilder

Image

Image

Image

Image

EDIT: this bar is now on the svn

Image

EDIT: Yet another item I made from scatch a none osi Hotbar idk if you would want to impliment this or not its just a gump no code but basically I want it integrated into the macro system to use it just place a spell or skill icon on it or an item and press the button specified F1 thru F8 also there are 5 different hot bars you can set to have many different ones. Anyways heres the gump I made and a screenshot since its none osi.

Image
Image

New Hotbar gump has no function though:
Code:

-- Created 8/28/2008 11:42:45 PM, with GumpStudio & Iris2 Lua Export Plugin
-- Exported Iris2 GumpExporter ver 1.0.
local hotbarGump = {}
hotbarGump.dialogId = 1200001
hotbarGump.x = 0
hotbarGump.y = 0
hotbarGump.Data =
    "{ page 0 }" ..
    "{ resizepic   0 0 9260 574 90 slotback1 }" ..
    "{ resizepic  10 15 9270 64 64 slotback2 }" ..
    "{ resizepic  76 15 9270 64 64 slotback3 }" ..
    "{ resizepic 142 15 9270 64 64 slotback4 }" ..
    "{ resizepic 208 15 9270 64 64 slotback5 }" ..
    "{ resizepic 274 15 9270 64 64 slotback6 }" ..
    "{ resizepic 340 15 9270 64 64 slotback7 }" ..
    "{ resizepic 406 15 9270 64 64 slotback8 }" ..
    "{ resizepic 472 15 9270 64 64 slotback9 }" ..
    "{ text 33  37 0 0 f1 }" ..
    "{ text 96  37 0 1 f2 }" ..
    "{ text 161 37 0 2 f3 }" ..
    "{ text 226 37 0 3 f4 }" ..
    "{ text 292 37 0 4 f5 }" ..
    "{ text 358 37 0 5 f6 }" ..
    "{ text 425 37 0 6 f7 }" ..
    "{ text 491 37 0 7 f8 }" ..
    "{ text 550  7 0 8 one }" ..
    "{ button 543 29 250 251 1 0 0 upbar }" ..
    "{ button 543 52 252 253 1 0 1 downbar }"

hotbarGump.textline = {
   [0] = "F1",
   [1] = "F2",
   [2] = "F3",
   [3] = "F4",
   [4] = "F5",
   [5] = "F6",
   [6] = "F7",
   [7] = "F8",
   [8] = "1",
}
hotbarGump.functions = {
-- Up Bar
[0]   = function (widget,mousebutton) if (mousebutton == 1) then widget.dialog:Close() gHotBarDialog = nil end end,
-- Down Bar
[1]   = function (widget,mousebutton) if (mousebutton == 1) then widget.dialog:Close() gHotBarDialog = nil end end,
}

kClientSideGump_HotBar = hotbarGump

gHotBarDialog = nil
function OpenHotBar()
   if not(gHotBarDialog) then
      local dialog = GumpParser( hotbarGump, true )

      -- overwrite the onMouseDown function from gumpparser
      dialog.onMouseDown = function (widget,mousebutton)
         if (mousebutton == 2) then widget.dialog:Close() gHotBarDialog = nil end
         if (mousebutton == 1) then widget.dialog:BringToFront() gui.StartMoveDialog(widget.dialog.rootwidget) end
      end
      
      gHotBarDialog = dialog
   end
end

Author:  Link_of_Hyrule [ Thu Aug 28, 2008 10:06 pm ]
Post subject: 

Sorry for the double post i didn't want to make it longer then it already is anyways heres my attempt at making the funtions for the Menu Bar. I don't really know much about lua but I looked at other scripts to see how they did it I couldn't figure out how to do a map toggle and I'm not sure that the irc like chat feature that the chat button uses is integrated in iris so I didn't know what to do for that ether. Also I'm not sure how to make my gump appear in iris when its started maybe you can help with this heres my code please tell me what i need to do to make it work. please note this is different then the lua file thats in the rar i posted above.

EDIT: I posted a newer version below.

Author:  ghoulsblade [ Thu Aug 28, 2008 10:28 pm ]
Post subject: 

@irc : sorry, was busy coding and in a hurry as it's getting very late and i want to get the partysystem dialog done today.

put your file into the lua subdir and add a "dofile" line to the others in lua/main.lua so it is included.

Author:  Link_of_Hyrule [ Fri Aug 29, 2008 3:44 am ]
Post subject: 

NEW EDIT: I discovered the problem was caused by there not being a description behind the code in the gump lines when i added this i was able to get it to work :) see below post for new details.

Author:  ghoulsblade [ Fri Aug 29, 2008 7:24 am ]
Post subject: 

took a quick look through it, but couldn't pinpoint the problem, too busy too look at it in more detail.

try looking at gui.gumpparser.lua line 665 to see whats wrong there, should be one of the gump-elements, but your linenumbers are different than mine, as you added something to gui.gumpparser.lua

Author:  Link_of_Hyrule [ Fri Aug 29, 2008 8:26 am ]
Post subject: 

i figured out the problem see above post :P

Author:  ghoulsblade [ Fri Aug 29, 2008 11:51 am ]
Post subject: 

the error appears near line 655 , so you might find a hint to what's wrong there.
You'll have to search the error yourself if you want to help with coding, otherwise it'd take us longer to analyze your code and find out what's wrong, than to code it ourselves.

Author:  SiENcE [ Fri Aug 29, 2008 5:41 pm ]
Post subject: 

Nice work. I hope we can add some of them and put func. in it.

Author:  Link_of_Hyrule [ Fri Aug 29, 2008 7:08 pm ]
Post subject: 

well i guess i'll just wait for one of you to code it because idk why it wouldn't work.

Author:  Link_of_Hyrule [ Tue Sep 02, 2008 7:34 am ]
Post subject: 

also added to svn.

Author:  ghoulsblade [ Tue Sep 02, 2008 11:40 am ]
Post subject: 

cool thanks =) could you add the two scrolls at the bottomleft of the paperdoll as well, please ?

Author:  Link_of_Hyrule [ Tue Sep 02, 2008 7:32 pm ]
Post subject: 

No need for this its on the svn :)

Author:  ghoulsblade [ Wed Sep 03, 2008 12:09 am ]
Post subject: 

ok, menubar and paperdoll jewelry slots have been added to svn.

Author:  Link_of_Hyrule [ Wed Sep 03, 2008 1:24 am ]
Post subject: 

Looks awesome just need to fix the purple book and the whole hat when wearing the gm robe issue.

EDIT: here is the edit for the purple book

Code:
"{ button 160 201 11060 11060 1 0 9 btnweaponability }" ..


Code:
-- initial body positon in gump
local BodyWidget_x   = 14
local BodyWidget_y   = 25


I'm still trying to figure out how to move the bag or put it behind the book because its covering the book.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/