-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Item Rename Framework #1329
Item Rename Framework #1329
Conversation
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ntory; Rename addRenamedItem function to renameInventoryItem Add params with typecheck, hasInterface & empty class check & header comment for public use in renameInventoryItem function Make functions & namespace local Rename getInventoryClassname function to getInventoryItemData Tweak initDisplayInventory function to: - Make Rename Item Framework work if Item Context Framework options are not present - Not not run if no ItemContextMenuOptions and renamedItems are present - Not not register Item Context Framework event handlers if ItemContextMenuOptions are not present - Not register Item Rename framework handlers if renamedItems are not present - Change exitWith to normal if for checking ctrlShown becouse exitWith will exit whole loop before checking rest of controls
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@commy2 Done. I tried earlier my luck with changing the tooltip but so far i've been unable to find a way to do that. It looks like it comes directly from the engine. I've been also thinking about supporting |
Yeah, couldn't get the tooltips to work either. Probably some hard coded stuff managing the inventory ui tooltips that prevents scripted tooltips from working, sadly. Could always try to create custom tooltip controls though. nil already converts to "" due to params command. Since empty stings make no sense (and for picture you could use the empty_ca.paa) it should treat "" as "revert to default". |
Ok, for now i think vanilla tooltips are fine, we can always add some workaround for tooltips later. Any other suggestions? |
There're no plans for anything lol |
Is this done? |
Afaik, yes. The only outstanding issue is the bug with corpses, the same issue as the item context menu framework. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about allowing the text color to be changed as well. |
@commy2 do you have any idea how to properly support items inside backpacks/containers on the ground? |
Why does |
The correct event name is "ContainerOpened". You can get which one is opened by tracking double click on the container list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BrettMayson Can you resolve the merge conflicts?
- You can't rename backpacks atm. It might be possible to add it without game engine changes, but I'm not certain.
- Dogtags - Rename inventory items acemod/ACE3#10102 (comment)
Which method is better - PFH, mouse EH or map EH? We should try to decide on a single method and stick with that imo, to make it more uniform.
}; | ||
}; | ||
|
||
// Reports classname, but only for magazines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I redid the inventory filtering in acemod/ACE3#9706, I found all item classnames are contained in lbData
except for backpacks:
https://github.com/acemod/ACE3/blob/b714c8bce2628ff8d4795da8a7f2fc05bb82f474/addons/inventory/functions/fnc_forceItemListUpdate.sqf#L33
Workaround for backpacks is to get them using the display name and picture.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workaround for backpacks is to get them using the display name and picture.
That would likely cause ambiguities for backpacks with linked items, as I doubt they would change the picture and display name for each variant.
Co-Authored-By: johnb432 <58661205+johnb432@users.noreply.github.com>
Not possible atm, made a ticket: https://feedback.bistudio.com/T183096 |
I'd like to merge now even if backpacks aren't working, |
It might be possible to just add |
Yes, atypical items can pose issues. Repro: I loaded ACE, CUP Weapons and RHS and put some mines from each mod into my backpack in the ACE arsenal (I had 13 items total in backpack, 1 base game training mine and 12 from CUP/RHS, I took 5 mines from 1 category, rest were 1 each). Restarted the game without CUP Weapons and RHS and went into the ACE arsenal. There, I still had 13 items, but 12 of them were _container = backpackContainer player;
weaponCargo _container + itemCargo _container + magazineCargo _container + backpackCargo _container; returns Any item renamed through the framework is affected by this: I tested it by trying to rename the training mine I had - this time it was the top most (again, makes sense). There might be a way around this very specific issue though: |
The However, there are still 2 issues:
I don't think using inventory commands to determine the order of the UI is the way forward. Imo we should not support backpacks atm, remove the empty classname stuff and hope the BI ticket will be resolved. |
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
When merged this pull request will:
Before
After
Known Issues:
Like the Item Context Menu, this does not work on corpses.