-
November 25th, 2016, 12:00 #1
How to write/create image database nodes?
Am I able to create databasenode with type="image" with bitmap value using FG API? The problem is that image typed databasenodes should look as following
Code:<image type="image"> <bitmap>path/to/image_file</bitmap> </image>
Does anyone know if this can be done with current FG engine/API?"Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness
Post your SavageWorlds ruleset feature requests and issue reports here!
-
November 25th, 2016, 22:52 #2
I'm not entirely sure what you are trying to do, so I don't know if I can help you. But to add an image to the database, you must first add the image to the campaign/module. Then you must put a reference in the <image> section directly off the root. The definition I see in current databases looks like this:
<id-00002>
<image type="image">
<bitmap>images/Flanaess.jpg</bitmap>
</image>
<isidentified type="number">0</isidentified>
<name type="string">Flanaess</name>
</id-00002>Last edited by Nickademus; November 25th, 2016 at 22:54.
I never claimed to be sane. Besides, it's more fun this way.
-
November 25th, 2016, 23:59 #3
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,559
You can create a drawing-only image node using the DB.createChild or databasenode.createChild function. However, you can not set the bitmap value. It's not supported in the API at all.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks