Hello,
1. Where do I define that entries I added to the settings.xml dont get deleted
when quitting the SL client?
I've added the block
<key>IncludeTimestampInSnapshotName</key>
<map>
<key>Comment</key>
<string>Append timstamp to snapshot filename</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
and have added the required functions to llfloatersnapshot.cpp which including
the proper
gSavedSettings.setBOOL("IncludeTimestampInSnapshotName", TRUE)
and
gSavedSettings.getBOOL("IncludeTimestampInSnapshotName")
calls.
As soon as I quit the client, the block shown above is gone from the
settings.xml.
The code to save snapshot as Snapshot-yyyy-mm-dd_HH_MM-SS-XXX.<ext> already
works.
Only the vanishing setting lets the client crash on next startup + opening
snapshot window.
2. And I dont know how to resize the floater window (floater_snapshot.xml) so
the additional line fits in:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<floater bottom="-300" can_close="true" can_drag_on_left="false"
can_minimize="false"
can_resize="false" follows="left|top" height="546" name="Snapshot"
[...]
I increased that height from 526 to 546 but still the last (new) line is
floating outside the window now. Do I have to change another value?
I added that block to the file:
<check_box bottom_delta="-20" follows="left|top" label="Add timestamp
to snapshot name" left="10"
name="add_timestamp_check" />
Any ideas?
Tillie
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/SLDev
Please read the policies before posting to keep unmoderated posting privileges