-
April 2nd, 2013, 20:50 #11
- Join Date
- Jun 2009
- Location
- France, near Paris
- Posts
- 305
ok thanks !
and for Anchored control static width error ?
-
April 2nd, 2013, 20:59 #12Originally Posted by earthworm3
Code:<size> Defines the size of controls anchored on only one side <width > ... </width> The width of the control, in pixels <height > ... </height> The height of the control, in pixels </size>
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
April 2nd, 2013, 21:10 #13
- Join Date
- Jun 2009
- Location
- France, near Paris
- Posts
- 305
i really don't understand the width error, not solved in this code :
Code:<textlistitemvalue name="value"> <anchored> <left> <anchor>left</anchor> <offset>2,2</offset> </left> <right> <parent>shortcut</parent> <anchor>left</anchor> <offset>-3</offset> </right> <top> <anchor>top</anchor> </top> <size> <width>40</width> <height>20</height> </size> </anchored> </textlistitemvalue>
Last edited by earthworm3; April 2nd, 2013 at 21:15.
-
April 2nd, 2013, 21:16 #14Originally Posted by earthworm3Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
April 2nd, 2013, 21:18 #15
- Join Date
- Jun 2009
- Location
- France, near Paris
- Posts
- 305
Ruleset Warning: Anchored control static width ignored for 'value'
-
April 2nd, 2013, 21:26 #16Originally Posted by earthworm3
The static width and height values as shown in post #12 above are only relevant if the control is anchored on one or less sides.
The control you show in post #13 is anchored on 3 sides - left, right and top. So, the width and height statements are not needed and they are ignored. Hence the warning (this is a warning, not an error):
Anchored control static width ignored for 'value'
EDIT: Remove the whole <size> ... </size> section as this is not needed. In fact it is being ignored, and FG is nice enough to warn you that it is being ignored.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
April 2nd, 2013, 21:41 #17
- Join Date
- Jun 2009
- Location
- France, near Paris
- Posts
- 305
Thanks it is working !
Code:<textlistitemvalue name="value"> <anchored> <left> <anchor>left</anchor> <offset>2,2</offset> </left> <right> <parent>shortcut</parent> <anchor>left</anchor> <offset>-3</offset> </right> <top> <anchor>top</anchor> </top> </anchored> </textlistitemvalue>
Last edited by earthworm3; April 2nd, 2013 at 21:47.
-
April 2nd, 2013, 23:43 #18
- Join Date
- Jun 2009
- Location
- France, near Paris
- Posts
- 305
Where can i found icon code when i right click on a map ? (i have no entering mask mod).
Please
-
April 2nd, 2013, 23:56 #19
Which ruleset are you basing your code off?
Usually there is a registerMenuItem command in the code to add all of the radial menu items: https://www.fantasygrounds.com/refdo...gisterMenuItem
Do a search in the files of the ruleset for registerMenuItem and see if there is one for the mask. I'm not 100% sure where this is and I'm not where I can review a ruleset to check. It may even be built into the mask functionality of the imagecontrol control: https://www.fantasygrounds.com/refdoc/imagecontrol.xcp
The graphics definition of the radial menus is usually in a file called something like "graphics_radial.xml" - look in here for the graphic icon files for the radial menu.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
April 3rd, 2013, 10:09 #20
- Join Date
- Jun 2009
- Location
- France, near Paris
- Posts
- 305
I'm based on "fg2_d20_jpg_v3_0_5" ruleset
EDIT :
i have added mask file into "graphics_radial" with this code :
Code:<icon name="mask2" file="icons/icon_mask.png" /> <icon name="deletemask2" file="icons/icon_deletemask.png" />
Code:function onInit() if (User.isHost() == true) then registerMenuItem("Enable Mask", "mask2", 7, 5); end end
Last edited by earthworm3; April 3rd, 2013 at 10:30.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks