Page MenuHomeFeedback Tracker

gearSlotData always returns empty string
Assigned, WishlistPublic

Description

Tried to get information about weapons/items from RscDisplayInventory class but seems that gearSlotData isnt working at all.

Details

Legacy ID
1052276291
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Open debug console in editor
  2. Insert and execute this code:
  3. spawn {

waitUntil {!isNull (findDisplay 602)};
disableSerialization;
_control = ((findDisplay 602) displayCtrl 610);
hint format["GSD: %1\nType: %2", gearSlotData _control, typeName (gearSlotData _control)];
};

  1. Open inventory and look at the hint
Additional Information

602 is IDD of RscDisplayInventory, 610 is IDC of primary weapon slot defined in UI config.
You can easily check this with code: _control ctrlSetToolTip format["%1", _control];

Event Timeline

BlenderRus edited Additional Information. (Show Details)
BlenderRus set Category to Scripting.
BlenderRus set Reproducibility to Always.
BlenderRus set Severity to None.
BlenderRus set Resolution to Open.
BlenderRus set Legacy ID to 1052276291.May 7 2016, 2:09 PM