View Single Post
  #1  
Unread 11-22-2011, 01:13 PM
Noviets Noviets is offline
A Sea Turtle
Interface Author - Click to view interfaces
 
Join Date: Mar 2008
Server: Antonia Bayle
Posts: 32
Question Ingame Editable and Saveable Notepad

DrumsUI has something similar to this (Functionality Wise) you can save Notes on items, which display in a Notes Window accessible by examining that item.
When you hit Save, it saves to an XML which is edited/added to the file depending if the item has notes already.

I would like to try to Copy this, and make it into a simple Notepad like feature, where the XML will be your Content, and Saving/editing the content will update the XML file.

It uses:
Code:
<?xml version="1.0" encoding="utf-8"?>
    <Button Name="ExamineLayout" OnPress="sXML=(drumsui_itemnotes.xml)&#xD;&#xA;map2_custom_poi_filename sXML&#xD;&#xA;map2_custom_poi_filename sXML&#xD;&#xA;map2_custom_poi_filename=drumsui_itemnotes.xml&#xD;&#xA;map2_custom_poi_filename=drumsui_itemnotes.xml&#xD;&#xA;&#xD;&#xA;Parent.MinimumSize=(535,326)&#xD;&#xA;Parent.MaximumSize=(535,326)&#xD;&#xA;Parent.DialogFrame.Size=(535,326)&#xD;&#xA;Parent.ExamineSaveSettings.visible=true&#xD;&#xA;Parent.ExamineResetSettings.visible=true&#xD;&#xA;Parent.ExamineText.visible=true&#xD;&#xA;Parent.TitleLabel.localtext=&apos;Item Note Editor&apos;&#xD;&#xA;Parent.PoiNameTextbox.text=Parent.CurrentOption.cmdName&#xD;&#xA;Parent.PoiDescLabel.text=&apos;Note:&apos;&#xD;&#xA;Parent.PoiNameTextbox.enabled=false&#xD;&#xA;Parent.PoiDesc.text=(Parent.CurrentOption.cmdString)" />
    <Button code1end=".PoiDescription&quot;=Parent.PoiDesc.text" code1start="&quot;Parent.Parent.DrumsUI_ItemNotes.POI.ItemNotes." code2end=".PoiDescription&quot;=Parent.PoiDesc.text" code2start="&quot;Parent.Parent.Parent.Custom.DrumsUI_ItemNotes.POI.ItemNotes." code3end=".PoiShowAlways&quot;=true" code3start="&quot;Parent.Parent.DrumsUI_ItemNotes.POI.ItemNotes." code4end=".PoiShowAlways&quot;=true" code4start="&quot;Parent.Parent.Parent.Custom.DrumsUI_ItemNotes.POI.ItemNotes." Location="105,175" Name="ExamineSaveSettings" OnPress="sCMD=(&apos;Parent.CurrentOption.cmdName&apos;)&#xD;&#xA;&#xD;&#xA;Parent.DoCommand.onpress=(code1Start ## sCMD ## code1End)&#xD;&#xA;Parent.DoCommand.visible=true&#xD;&#xA;Parent.DoCommand.onpress=(code2Start ## sCMD ## code2End)&#xD;&#xA;Parent.DoCommand.visible=true&#xD;&#xA;&#xD;&#xA;Parent.DoCommand.onpress=(code3Start ## sCMD ## code3End)&#xD;&#xA;Parent.DoCommand.visible=true&#xD;&#xA;Parent.DoCommand.onpress=(code4Start ## sCMD ## code4End)&#xD;&#xA;Parent.DoCommand.visible=true&#xD;&#xA;&#xD;&#xA;Parent.ButtonOK.press=true" ScrollExtent="105,38" Size="105,38" Style="/CommonElements.LargePushButton.data.style" Visible="false">Save</Button>
    <Button Location="221,175" Name="ExamineResetSettings" OnPress="Parent.PoiDesc.text=(Parent.CurrentOption.cmdString)" ScrollExtent="105,38" Size="105,38" Style="/CommonElements.LargePushButton.data.style" Tooltip="Undo any changes made (while this window has been open)" Visible="false">Reset</Button>
    <Page BackgroundOpacity="0.400" Location="15,213" Name="ExamineText" ScrollExtent="506,95" Size="506,95" Visible="false">
        <Text AbsorbsInput="false" Color="#F1F1F1" Font="/TextStyles.Normal.NormalStyle" Location="28,-4" Name="tips" PackSize="a,fixed" ScrollExtent="477,100" Size="477,100" TextAlignmentVertical="Center" TextColor="#FBF1D9">- Apostrophes and quotes are safe to use
- Recommended to stick to normal text characters
- Using more than one line is perfectly fine
- Do not attempt to edit an Item Note while already editing another</Text>
    </Page>
This is the GUI Window, I have no clue what the code does, maybe someone can help to explain it.

Just trying to find the functionality that it uses to Insert the data into a file. The information it uses to get the itemname and stuff can all be stripped out, as I would like to try and have an independant Notes Window.

Important Note:
I do NOT want to have to play in window mode, or use windows Notepad.
I do not want to have to open notepad or search for files to open and edit.
I would like to play the game in Full Screen, and still be able to write down notes in game. (No Pen and Paper jokes :P)

I'd like to get this done as soon as I can. I'd really appreciate anyone who can help make this happen.
Reply With Quote