Iris2.de

Iris2-Forum
It is currently Sun Nov 10, 2024 7:20 pm

All times are UTC




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Client Side Gumps
PostPosted: Wed Aug 27, 2008 2:55 am 
Offline

Joined: Sat Apr 01, 2006 10:53 pm
Posts: 63
Location: AL, USA
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


Last edited by Link_of_Hyrule on Wed Sep 03, 2008 1:20 am, edited 3 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 28, 2008 10:06 pm 
Offline

Joined: Sat Apr 01, 2006 10:53 pm
Posts: 63
Location: AL, USA
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.


Last edited by Link_of_Hyrule on Fri Aug 29, 2008 5:30 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 28, 2008 10:28 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
@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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2008 3:44 am 
Offline

Joined: Sat Apr 01, 2006 10:53 pm
Posts: 63
Location: AL, USA
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.


Last edited by Link_of_Hyrule on Tue Sep 02, 2008 6:56 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2008 7:24 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2008 8:26 am 
Offline

Joined: Sat Apr 01, 2006 10:53 pm
Posts: 63
Location: AL, USA
i figured out the problem see above post :P


Last edited by Link_of_Hyrule on Wed Sep 03, 2008 1:22 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2008 11:51 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2008 5:41 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
Nice work. I hope we can add some of them and put func. in it.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2008 7:08 pm 
Offline

Joined: Sat Apr 01, 2006 10:53 pm
Posts: 63
Location: AL, USA
well i guess i'll just wait for one of you to code it because idk why it wouldn't work.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 7:34 am 
Offline

Joined: Sat Apr 01, 2006 10:53 pm
Posts: 63
Location: AL, USA
also added to svn.


Last edited by Link_of_Hyrule on Wed Sep 03, 2008 1:19 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 11:40 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
cool thanks =) could you add the two scrolls at the bottomleft of the paperdoll as well, please ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 7:32 pm 
Offline

Joined: Sat Apr 01, 2006 10:53 pm
Posts: 63
Location: AL, USA
No need for this its on the svn :)


Last edited by Link_of_Hyrule on Wed Sep 03, 2008 1:19 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 12:09 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
ok, menubar and paperdoll jewelry slots have been added to svn.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 1:24 am 
Offline

Joined: Sat Apr 01, 2006 10:53 pm
Posts: 63
Location: AL, USA
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group