- Joined
- Sep 18, 2007
- Messages
- 1,951
Keep working on such things, I am impressed. Good work + rep
(19 ratings)
1. bad lag when switching items from inventory to character and when first opening pages
2. you can select 1 item multiple times really quickly and lags down game until you receive a fatal error
// if true a timer will be ran to check selections
// rather than the selection event. this is faster but
// more cpu intensive. it also requires a hardcoded
// delay otherwise buttons will be spammed.
static constant boolean USE_LEFT_CLICK_TIMER = true
static constant real LEFT_CLICK_TIMER_RATE = 0.01
It is said, it's awesome.
However I noticed a plenty of bugs here: when I'm switching pages in my inventory, camera unlocks from the character and then inv can dissapear from screen with cam movement; switching pages works only half of the times, and rolling up through the 10 pages made my inventory completely empty. Buttons lag sometimes, missing my click on something close to what I was going to click on.
Also any object on the ground behind the inventory interrupts interaction with the inventory, which is kinda annoying because I get my hero deselected.
Needs perfection strongly, until that it's cool to see but not to use.
Is it matches with your save & load system?
local Equipment gear = Equipment[GetTriggerUnit()] // any unit
call savecode.save(gear.item[0].id) // or something similar, and for the rest of the gear items
// Claws of Attack +15
call InitEquipItem.execute('ratf', "Increases the attack damage of the Hero by 15 when worn.^type=weapon; class=1h; icon='D009'; cost=28; ^dmg=15;0;0;")
// Robe of the Last Guardian
call InitEquipItem.execute('I007', "Powerful magic robe.^type=armor; lvl=10; icon=B00Z; utype='Ulic'; cost=600; ^def=0;10;20; int=20;0;5; life=300;0;0;")
"Description ^parameter=value; ^bonus=base;min;max;"
with you Codeless Save and Load (Multiplayer) - v1.3.4 i can save my items from this system,
How could I use your save system in your equipment system?
can you help me how to import it?plsUpdated, v1.3.0
- Rewrote DGUI library and renamed it to "UserInterface". Many improvements were made here which will be announced in a separate thread.
- Bonus abilities now preload properly, removing the initial lag when equipping an item.
Imo, "Inventory & Equipment UI System" doesn't sound like a fitting name since this is a fully working full screen inventory system, not just the user interface. "Dynamic/Floating Fullscreen Inventory & Equipment System" might do it.
Ah right. So maybe "Dynamic/Floating UI Inventory & Equipment System" will do.Except that it's not "fullscreen"?
Very impressive system. I really like it. However, I've encounter some annoying bug. After some time, the game freezes when I open the inventory system. It's very annoying and I don't really know what does it.
fuck sake....who can help me how to import...?i said it 2 times and nothink,...
I have that fixed for the next version already. I also created a dynamic tooltip window, but I'm not sure if people would want it over the current setup.
![]()
I wouldn't mind having the option to switch between the dynamic one and the static one, if that's a possibility![]()
what is the function to check if unit has a certain item in inventory
local Inventory inv = Inventory[someunit]
if (inv.itemsOfType('I000') > 0) then
call BJDebugMsg("Unit has item.")
else
call BJDebugMsg("Unit does not have item.")
endif