Hello,
There is problem with the command ctrlCreate
When you are using this command with class RscButtonImages, there is some warning on my screen about some variable are undefine.
Could you fix that please?
Hello,
There is problem with the command ctrlCreate
When you are using this command with class RscButtonImages, there is some warning on my screen about some variable are undefine.
Could you fix that please?
Just create a new mission with an initPlayerLocal.sqf and a playable unit and create a control like this
private["_ctrl"]; waitUntil {!isNull player && player == player}; //Wait till the player is ready waitUntil {!(isNull (findDisplay 46))}; diag_log "HUD Player Found"; disableSerialization; _ctrl = (findDisplay 46) ctrlCreate["RscButtonImages", 10];
And you see all warning message. There is my rpt:
4:28:51 "HUD Player Found" 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.type'. 4:28:51 Warning Message: '/' is not a value 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.style'. 4:28:51 Warning Message: '/' is not a value 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.x'. 4:28:51 Warning Message: '/' is not a value 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.y'. 4:28:51 Warning Message: '/' is not a value 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.w'. 4:28:51 Warning Message: '/' is not a value 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.h'. 4:28:51 Warning Message: '/' is not a value 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.colorBackground'. 4:28:51 Warning Message: Size: '/' not an array 4:28:51 Warning Message: Size: '/' not an array 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.colorText'. 4:28:51 Warning Message: Size: '/' not an array 4:28:51 Warning Message: Size: '/' not an array 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.font'. 4:28:51 Warning Message: '/' is not a value 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.sizeEx'. 4:28:51 Warning Message: '/' is not a value 4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.text'. 4:28:51 Warning Message: '/' is not a value
upping three times on a Sunday might not be the best thing to make things go forward :)
things here are not immediate, you may want to wait some time before upping.
I would like an answer to tell that this bug will be fix, and may be a time to wait to solve it. It just a minor bug and this is really fast to solve it..
Command: https://community.bistudio.com/wiki/ctrlCreate
Ancillary sub-page of ctrlCreate, listing control classnames available in config:https://community.bistudio.com/wiki/ctrlCreate/classnames
RscButtonImages is in list
I have discussed this with the devs and it seems that it is incorrectly sorted into the RscXxxxxxxxxx, the structure of it however gives away it is not a control.
So there is no way to create control with image with ctrlCreate, right? If no, Do you know if dev ll add new control to do this?
That unfortunately is beyond my knowledge, I would recommend visiting a BI Forum or other community page, people there have vast knowledge and are always willing to help.