jaekx Posted November 16, 2012 Author Share Posted November 16, 2012 Im trying to add equipment slots to EA, my question is about adding more columns to the Character_GUI menu.I wanna know how to set up the code so I can add more rows of equips, like whats boxed in red, for the added equip slots boxed in blue.![](http://i.imgur.com/jeC1v.png)the code for the set up looks like such.the -78 was an add from me to heighten the normal 4 equip slots upward to fit my GUI change. As you can see it only accounts for one row, I just want to know how to add more.```Public Function IsEqItem(ByVal X As Single, ByVal Y As Single) As LongDim tempRec As RECTDim I As Long' If debug mode, handle error then exit outIf Options.Debug = 1 Then On Error GoTo errorhandlerIsEqItem = 0For I = 1 To Equipment.Equipment_Count - 1 If GetPlayerEquipment(MyIndex, I) > 0 And GetPlayerEquipment(MyIndex, I) <= MAX_ITEMS Then With tempRec .Top = GUIWindow(GUI_CHARACTER).Y + EqTop - 78 .Bottom = .Top + PIC_Y .Left = GUIWindow(GUI_CHARACTER).X + EqLeft + ((EqOffsetX + 32) * (((I - 1) Mod EqColumns))) .Right = .Left + PIC_X End With If X >= tempRec.Left And X <= tempRec.Right Then If Y >= tempRec.Top And Y <= tempRec.Bottom Then IsEqItem = I Exit Function End If End If End IfNext' Error handlerExit Functionerrorhandler:HandleError "IsEqItem", "frmGameLogic", Err.Number, Err.Description, Err.Source, Err.HelpContextErr.ClearExit FunctionEnd Function```if anyone wants to use some of my gray un equip slot images and possibly set up a tutorial ill add them here.![](http://i.imgur.com/Acf9x.png)1- cape2- accessory3- ring4- shoes5- mask6- gloves7- earring8- pet equipalso here is my GUI if anyone wants to steal it.![](http://i.imgur.com/smSqS.png) Link to comment Share on other sites More sharing options...
kasparas014 Posted November 17, 2012 Share Posted November 17, 2012 i know it's nothing realated , but… i really want my game to have same hotbar , hp and other stuff layout, but i am totally new to the thing so i cant make it like this.. Link to comment Share on other sites More sharing options...
tslusny Posted November 17, 2012 Share Posted November 17, 2012 > i know it's nothing realated , but… i really want my game to have same hotbar , hp and other stuff layout, but i am totally new to the thing so i cant make it like this..So use Eclipse Reborn (in custom versions) Link to comment Share on other sites More sharing options...
kasparas014 Posted November 17, 2012 Share Posted November 17, 2012 does it have events ? if not doesnt matter , but can i have a link to it ?edit : oh found it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now