Mercurial > traipse_dev
changeset 190:15488fe94f52 beta
Traipse Beta 'OpenRPG' {100125-01}
Traipse is a distribution of OpenRPG that is designed to be easy to
setup and go. Traipse also makes it easy for developers to work on code
without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy'
and adds fixes to the code. 'Ornery-Orc's main goal is to offer more
advanced features and enhance the productivity of the user.
Update Summary (Beta)
New Features:
New Bookmarks Feature
New 'boot' command to remote admin
New confirmation window for sent nodes
Miniatures Layer pop up box allows users to turn off Mini labels, from
FlexiRPG
New Zoom Mouse plugin added
New Images added to Plugin UI
Switching to Element Tree
New Map efficiency, from FlexiRPG
New Status Bar to Update Manager
New TrueDebug Class in orpg_log (See documentation for usage)
New Portable Mercurial
New Tip of the Day, from Core and community
New Reference Syntax added for custom PC sheets
New Child Reference for gametree
New Parent Reference for gametree
New Gametree Recursion method, mapping, context sensitivity, and
effeciency..
New Features node with bonus nodes and Node Referencing help added
New Dieroller structure from Core
New DieRoller portability for odd Dice
New 7th Sea die roller; ie [7k3] = [7d10.takeHighest(3).open(10)]
New 'Mythos' System die roller added
New vs. die roller method for WoD; ie [3v3] = [3d10.vs(3)]. Included for
Mythos roller also
New Warhammer FRPG Die Roller (Special thanks to Puu-san for the
support)
New EZ_Tree Reference system. Push a button, Traipse the tree, get a
reference (Beta!)
New Grids act more like Spreadsheets in Use mode, with Auto Calc
Fixes:
Fix to allow for portability to an OpenSUSE linux OS
Fix to mplay_client for Fedora and OpenSUSE
Fix to Text based Server
Fix to Remote Admin Commands
Fix to Pretty Print, from Core
Fix to Splitter Nodes not being created
Fix to massive amounts of images loading, from Core
Fix to Map from gametree not showing to all clients
Fix to gametree about menus
Fix to Password Manager check on startup
Fix to PC Sheets from tool nodes. They now use the tabber_panel
Fix to Whiteboard ID to prevent random line or text deleting.
Fixes to Server, Remote Server, and Server GUI
Fix to Update Manager; cleaner clode for saved repositories
Fixes made to Settings Panel and now reactive settings when Ok is
pressed
Fixes to Alternity roller's attack roll. Uses a simple Tuple instead of
a Splice
Fix to Use panel of Forms and Tabbers. Now longer enters design mode
Fix made Image Fetching. New fetching image and new failed image
Fix to whiteboard ID's to prevent non updated clients from ruining the
fix.
default_manifest.xml renamed to default_upmana.xml
author | sirebral |
---|---|
date | Mon, 25 Jan 2010 12:07:48 -0600 |
parents | 7c1a8b36b729 |
children | a3d7e05085da |
files | orpg/gametree/nodehandlers/rpg_grid.py orpg/orpg_version.py orpg/templates/nodes/4e_char_sheet.xml plugins/xxblank.py plugins/xxgsc.py plugins/xxhiddendice.py plugins/xxmouse-zoom.py plugins/xxspell.py plugins/xxurl2link.py |
diffstat | 9 files changed, 201 insertions(+), 148 deletions(-) [+] |
line wrap: on
line diff
--- a/orpg/gametree/nodehandlers/rpg_grid.py Mon Jan 25 10:03:16 2010 -0600 +++ b/orpg/gametree/nodehandlers/rpg_grid.py Mon Jan 25 12:07:48 2010 -0600 @@ -327,6 +327,7 @@ cells[i].text = text if self.mode == 0: s = component.get('chat').ParseMap(text, self.handler.xml) + s = component.get('chat').ParseParent(s, self.handler.xml.get('map')) try: text = str(eval(s)) except: text = s self.SetCellValue(rowi,i,text)
--- a/orpg/orpg_version.py Mon Jan 25 10:03:16 2010 -0600 +++ b/orpg/orpg_version.py Mon Jan 25 12:07:48 2010 -0600 @@ -4,7 +4,7 @@ #BUILD NUMBER FORMAT: "YYMMDD-##" where ## is the incremental daily build index (if needed) DISTRO = "Traipse Beta" DIS_VER = "Ornery Orc" -BUILD = "100125-00" +BUILD = "100125-01" # This version is for network capability. PROTOCOL_VERSION = "1.2"
--- a/orpg/templates/nodes/4e_char_sheet.xml Mon Jan 25 10:03:16 2010 -0600 +++ b/orpg/templates/nodes/4e_char_sheet.xml Mon Jan 25 12:07:48 2010 -0600 @@ -1,4 +1,4 @@ -<nodehandler class="tabber_handler" frame="808,494,162,44" icon="tabber" map="" module="containers" name="4e PC Sheet" version="1.0"><nodehandler class="tabber_handler" frame="400,400,399,89" icon="tabber" map="4e PC Sheet" module="containers" name="Using the 4e PC Sheet" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet::Using the 4e PC Sheet" module="forms" name="Introduction" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">This node is designed to be as generic as possible. It should contain the core basics for users to fill out with game information that is specific to their character. +<nodehandler class="tabber_handler" frame="808,494,166,146" icon="tabber" map="" module="containers" name="4e PC Sheet" version="1.0"><nodehandler class="tabber_handler" frame="400,400,399,89" icon="tabber" map="4e PC Sheet-WIP" module="containers" name="Using the 4e PC Sheet" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet-WIP::Using the 4e PC Sheet" module="forms" name="Introduction" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">This node is designed to be as generic as possible. It should contain the core basics for users to fill out with game information that is specific to their character. The node is also designed to be organized with speed of use in mind. Since the majority of nodes are inside Tabbers you can easily use the top node and find all of your data inside. In fact, that is how I am writing this. @@ -13,7 +13,7 @@ Combat: This contains grids so you can reference your weapon dice, armor bonuses, feat bonuses .. and they too can use references so if you change a number the software does the math. -Inventory: You guess it. It comes with a Back Pack text node that you can clone to make bags and other containers.</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet::Using the 4e PC Sheet" module="forms" name="Rollers" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">Inside the Rollers tab you will find 5 lists. You can use these lists to add new references to nodes. The Rollers tab is also a Tabber node itself, so you can just double click the Rollers node to get all of your rollers in one window. You can also edit all of your rollers in one window when you enter into the Design mode of the Rollers tabber.</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet::Using the 4e PC Sheet" module="forms" name="General" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">This form contains a some text nodes that hold basic information about your character. In some Powers the Level and Tier are used to calculate bonuses. You can reference those nodes to make the math easier</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet::Using the 4e PC Sheet" module="forms" name="Abilities" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">The Abilities Grid contains the 6 abilities all set at values of 8. The third column is the math calculation for the modifier. You can reference that grid column to assist in your math calculations.</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet::Using the 4e PC Sheet" module="forms" name="Combat" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">The Combat Tabber contains a number of Grid nodes to assist in your combat calculations. Some grids contain a grid cell called Total. +Inventory: You guess it. It comes with a Back Pack text node that you can clone to make bags and other containers.</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet-WIP::Using the 4e PC Sheet" module="forms" name="Rollers" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">Inside the Rollers tab you will find 5 lists. You can use these lists to add new references to nodes. The Rollers tab is also a Tabber node itself, so you can just double click the Rollers node to get all of your rollers in one window. You can also edit all of your rollers in one window when you enter into the Design mode of the Rollers tabber.</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet-WIP::Using the 4e PC Sheet" module="forms" name="General" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">This form contains a some text nodes that hold basic information about your character. In some Powers the Level and Tier are used to calculate bonuses. You can reference those nodes to make the math easier</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet-WIP::Using the 4e PC Sheet" module="forms" name="Abilities" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">The Abilities Grid contains the 6 abilities all set at values of 8. The third column is the math calculation for the modifier. You can reference that grid column to assist in your math calculations.</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet-WIP::Using the 4e PC Sheet" module="forms" name="Combat" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">The Combat Tabber contains a number of Grid nodes to assist in your combat calculations. Some grids contain a grid cell called Total. To Hit: The To Hit Bonus. This Grid contains a cell called Total. You can add new rows to the grid when you are granted bonuses and then add those references to the total. @@ -23,54 +23,124 @@ AC Bonus: This Grid contains a cell called Total. You can add new rows to the grid when you are granted bonuses and then add those references to the total. -Feats: Some feats add bonusus to hit or damage. When these bonuses are calculated you can add them here and the math easier for you.</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet::Using the 4e PC Sheet" module="forms" name="Utilities" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">This Tabber contains a Tabber for At Will, Encounter and Daily. Each tabber contains a node for levels 0 and 1. You can add new tabbers when you reach higher levels. +Feats: Some feats add bonusus to hit or damage. When these bonuses are calculated you can add them here and the math easier for you.</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet-WIP::Using the 4e PC Sheet" module="forms" name="Utilities" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">This Tabber contains a Tabber for At Will, Encounter and Daily. Each tabber contains a node for levels 0 and 1. You can add new tabbers when you reach higher levels. Inside the 0 Level tabber for each Utility there is a text node that contains a an attack roll and a damage roll. -** I went with this format so users could create their Utility nodes and share with others. The nodes can contain Role Play information as well as attack and damage rolls. Also, the nodes can be completely genric, referencing the Name Text node and still look specific **</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet::Using the 4e PC Sheet" module="forms" name="Inventory" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">It's just a node to hold your Inventory +** I went with this format so users could create their Utility nodes and share with others. The nodes can contain Role Play information as well as attack and damage rolls. Also, the nodes can be completely genric, referencing the Name Text node and still look specific **</text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,336,156" icon="note" map="4e PC Sheet-WIP::Using the 4e PC Sheet" module="forms" name="Inventory" version="1.0"><text hide_title="0" multiline="1" raw_mode="1" send_button="0">It's just a node to hold your Inventory This bears repeating: -It comes with a Back Pack text node that you can clone to make bags and other containers.</text></nodehandler></nodehandler><nodehandler class="tabber_handler" frame="437,400,373,67" icon="tabber" map="4e PC Sheet" module="containers" name="Rollers" version="1.0"><nodehandler class="listbox_handler" frame="400,400,430,57" icon="gear" map="4e PC Sheet::Rollers" module="forms" name="Skills" version="1.0"> - <list raw_mode="1" send_button="1" type="1"> - <option caption="" selected="1" value="0">Climb [1d20+5+!#Abilities::(1,3)#!+(!#General::Level#!/2)</option> - <option caption="" selected="0" value="0">Hide [1d20+5+!#Abilities::(2,3)#!+(!#General::Level#!/2)]</option> - <option caption="" selected="0" value="0">Spot [1d20+5+!#Abilities::(4,3)#!+(!#General::Level#!/2)]</option> +It comes with a Back Pack text node that you can clone to make bags and other containers.</text></nodehandler></nodehandler><nodehandler class="tabber_handler" frame="568,400,446,121" icon="tabber" map="4e PC Sheet-WIP" module="containers" name="Rollers" version="1.0"><nodehandler class="listbox_handler" frame="400,400,541,107" icon="gear" map="4e PC Sheet-WIP::Rollers" module="forms" name="Skills" version="1.0"> + <list raw_mode="1" send_button="1" type="2"> + <option caption="Climb" selected="0" value="0">Climb [1d20+5+!#Abilities::(1,3)#!+(!#General::Level#!/2)]</option> + <option caption="Hide" selected="0" value="0">Hide [1d20+5+!#Abilities::(2,3)#!+(!#General::Level#!/2)]</option> + <option caption="Spot" selected="1" value="0">Spot [1d20+5+!#Abilities::(4,3)#!+(!#General::Level#!/2)]</option> </list> </nodehandler> - <nodehandler class="listbox_handler" frame="400,400,477,43" icon="gear" map="4e PC Sheet::Rollers" module="forms" name="Attacks" version="1.0"> + <nodehandler class="listbox_handler" frame="400,400,466,138" icon="gear" map="4e PC Sheet-WIP::Rollers" module="forms" name="Attacks" version="1.0"> <list raw_mode="1" send_button="1" type="1"> - <option caption="Sword Attack" selected="0" value=""><b>Attack</b> !#Combat::Weapons::(2,1)#! [1d20+!#Abilities::(1,3)#!] <b>Damage:</b> [1!#Combat::Weapons::(2,2)#!]</option> - <option caption="Mace Attack" selected="1" value=""><b>Attack</b> !#Combat::Weapons::(3,1)#! [1d20+!#Abilities::(1,3)#!] <b>Damage:</b> [1!#Combat::Weapons::(3,2)#!]</option> + <option caption="Sword Attack" selected="0" value=""><b>Attack</b> !#Combat::Weapons::(2,1)#! [1d20+!#Combat::To Hit::(2,2)#!] <b>Damage:</b> [1!#Combat::Weapons::(2,2)#!+!#Abilities::(1,3)#!]</option> + <option caption="Mace Attack" selected="1" value=""><b>Attack</b> !#Combat::Weapons::(3,1)#! [1d20+!#Combat::To Hit::(2,2)#!] <b>Damage:</b> [1!#Combat::Weapons::(3,2)#!+!#Abilities::(1,3)#!]</option> <option caption="Uncreated" selected="0" value="">Option Text III</option> </list> -</nodehandler><nodehandler class="splitter_handler" frame="764,400,9,91" horizontal="0" icon="divider" map="4e PC Sheet::Rollers" module="containers" name="Powers" version="1.0"> - <nodehandler class="listbox_handler" frame="400,400,236,66" icon="gear" map="4e PC Sheet::Rollers::Powers" module="forms" name="At Wills" version="1.0"> - <list raw_mode="1" send_button="1" type="1"> +</nodehandler><nodehandler class="splitter_handler" frame="764,400,9,91" horizontal="0" icon="divider" map="4e PC Sheet-WIP::Rollers" module="containers" name="Powers" version="1.0"> + <nodehandler class="listbox_handler" frame="400,400,236,66" icon="gear" map="4e PC Sheet-WIP::Rollers::Powers" module="forms" name="At Wills" version="1.0"> + <list raw_mode="1" send_button="1" type="3"> <option caption="At Will Power" selected="1" value="0">!#Utilities::At Will::0::At Will#!</option></list> -</nodehandler><nodehandler class="listbox_handler" frame="400,400,236,66" icon="gear" map="4e PC Sheet::Rollers::Powers" module="forms" name="Encounters" version="1.0"> - <list raw_mode="1" send_button="1" type="1"> +</nodehandler><nodehandler class="listbox_handler" frame="400,400,236,66" icon="gear" map="4e PC Sheet-WIP::Rollers::Powers" module="forms" name="Encounters" version="1.0"> + <list raw_mode="1" send_button="1" type="3"> <option caption="Encounter" selected="1" value="0">!#Utilities::Encounter::0::Encounter#!</option></list> -</nodehandler><nodehandler class="listbox_handler" frame="400,400,470,62" icon="gear" map="4e PC Sheet::Rollers::Powers" module="forms" name="Dailys" version="1.0"> - <list raw_mode="1" send_button="1" type="1"> +</nodehandler><nodehandler class="listbox_handler" frame="400,400,470,62" icon="gear" map="4e PC Sheet-WIP::Rollers::Powers" module="forms" name="Dailys" version="1.0"> + <list raw_mode="1" send_button="1" type="3"> <option caption="Daily" selected="1" value="0">!#Utilities::Daily::0::Daily#!</option></list> -</nodehandler></nodehandler></nodehandler><nodehandler class="form_handler" frame="400,400,307,186" height="600" icon="form" map="4e PC Sheet" module="forms" name="General" version="1.0" width="400"> - <nodehandler class="textctrl_handler" icon="note" map="4e PC Sheet::General" module="forms" name="Name" version="1.0"> +</nodehandler></nodehandler></nodehandler><nodehandler class="form_handler" frame="400,400,307,186" height="600" icon="form" map="4e PC Sheet-WIP" module="forms" name="General" version="1.0" width="400"> + <nodehandler class="textctrl_handler" icon="note" map="4e PC Sheet-WIP::General" module="forms" name="Name" version="1.0"> <text multiline="0" raw_mode="1" send_button="0">text</text> -</nodehandler><nodehandler class="textctrl_handler" icon="note" map="4e PC Sheet::General" module="forms" name="Player" version="1.0"> +</nodehandler><nodehandler class="textctrl_handler" icon="note" map="4e PC Sheet-WIP::General" module="forms" name="Player" version="1.0"> <text multiline="0" send_button="0">text</text> -</nodehandler><nodehandler class="textctrl_handler" icon="note" map="4e PC Sheet::General" module="forms" name="Race" version="1.0"> +</nodehandler><nodehandler class="textctrl_handler" icon="note" map="4e PC Sheet-WIP::General" module="forms" name="Race" version="1.0"> + <text multiline="0" send_button="0">text</text> +</nodehandler><nodehandler class="textctrl_handler" icon="note" map="4e PC Sheet-WIP::General" module="forms" name="Class" version="1.0"> <text multiline="0" send_button="0">text</text> -</nodehandler><nodehandler class="textctrl_handler" icon="note" map="4e PC Sheet::General" module="forms" name="Class" version="1.0"> - <text multiline="0" send_button="0">text</text> -</nodehandler><nodehandler class="textctrl_handler" frame="400,400,0,48" icon="note" map="4e PC Sheet::General" module="forms" name="Level" version="1.0"> +</nodehandler><nodehandler class="textctrl_handler" frame="400,400,0,48" icon="note" map="4e PC Sheet-WIP::General" module="forms" name="Level" version="1.0"> + <text multiline="0" raw_mode="1" send_button="0">1</text> +</nodehandler><nodehandler class="textctrl_handler" frame="400,400,0,48" icon="note" map="4e PC Sheet-WIP::General" module="forms" name="Tier" version="1.0"> <text multiline="0" raw_mode="1" send_button="0">1</text> -</nodehandler><nodehandler class="textctrl_handler" frame="400,400,0,48" icon="note" map="4e PC Sheet::General" module="forms" name="Tier" version="1.0"> - <text multiline="0" raw_mode="1" send_button="0">1</text> -</nodehandler></nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,488,115" icon="grid" map="4e PC Sheet" module="rpg_grid" name="Abilities" version="1.0"> +</nodehandler></nodehandler><nodehandler class="tabber_handler" frame="400,400,9,91" icon="tabber" map="4e PC Sheet-WIP" module="containers" name="Combat" version="1.0"><nodehandler class="rpg_grid_handler" frame="400,400,269,110" icon="grid" map="4e PC Sheet-WIP::Combat" module="rpg_grid" name="Weapons" version="1.0"> + <grid autosize="1" border="1"> + <row version="1.0"> + <cell>Weapon</cell> + <cell>Damage</cell> + </row> + <row version="1.0"> + <cell>Sword</cell> + <cell>d6</cell> + </row> + <row version="1.0"><cell>Mace</cell><cell>d8</cell></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row></grid> + <macros> + <macro name="" /> + </macros> +</nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,354,98" icon="grid" map="4e PC Sheet-WIP::Combat" module="rpg_grid" name="To Hit" version="1.0"> + <grid autosize="1" border="1"> + <row version="1.0"> + <cell>Armor</cell> + <cell size="360">Bonus</cell> + </row> + <row version="1.0"> + <cell>Total</cell> + <cell>!!To Hit::(3,2)!! + !!To Hit::(4,2)!!</cell> + </row> + <row version="1.0"><cell>BAB</cell><cell>15</cell></row><row version="1.0"><cell>Str Mod</cell><cell>!#Abilities::(1,3)#!</cell></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row></grid> + <macros> + <macro name="" /> + </macros> +</nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,354,98" icon="grid" map="4e PC Sheet-WIP::Combat" module="rpg_grid" name="AC Bonus" version="1.0"> + <grid autosize="1" border="1"> + <row version="1.0"> + <cell>Armor</cell> + <cell size="225">Bonus</cell> + </row> + <row version="1.0"> + <cell>Total</cell> + <cell>!!AC Bonus::(3,2)!!+!!AC Bonus::(4,2)!!</cell> + </row> + <row version="1.0"><cell>Armor</cell><cell>!!Armor::(2,2)!!</cell></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row></grid> + <macros> + <macro name="" /> + </macros> +</nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,354,98" icon="grid" map="4e PC Sheet-WIP::Combat" module="rpg_grid" name="Armor" version="1.0"> + <grid autosize="1" border="1"> + <row version="1.0"> + <cell>Armor</cell> + <cell size="183">Bonus</cell> + </row> + <row version="1.0"> + <cell>Total</cell> + <cell>!!Armor::(3,2)!!</cell> + </row> + <row version="1.0"><cell>Base</cell><cell>10</cell></row><row version="1.0"><cell>Armor</cell><cell /></row><row version="1.0"><cell>Shield</cell><cell /></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row><row version="1.0"><cell /><cell /></row></grid> + <macros> + <macro name="" /> + </macros> +</nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,354,98" icon="grid" map="4e PC Sheet-WIP::Combat" module="rpg_grid" name="Feats" version="1.0"> + <grid autosize="1" border="1"> + <row version="1.0"> + <cell>Armor</cell> + <cell>Bonus</cell> + <cell>Descripton</cell></row> + <row version="1.0"> + <cell>Total</cell> + <cell>!!Feats::(3,2)!!</cell> + <cell /></row> + <row version="1.0"><cell>Feat</cell><cell>0</cell><cell /></row><row version="1.0"><cell /><cell /><cell /></row><row version="1.0"><cell /><cell /><cell /></row><row version="1.0"><cell /><cell /><cell /></row><row version="1.0"><cell /><cell /><cell /></row></grid> + <macros> + <macro name="" /> + </macros> +</nodehandler></nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,488,115" icon="grid" map="4e PC Sheet-WIP" module="rpg_grid" name="Abilities" version="1.0"> <grid autosize="1" border="1"> <row version="1.0"> <cell>Str</cell> - <cell>8</cell> + <cell>12</cell> <cell size="197">(!!Abilities::(1,2)!!-10)/2</cell></row> <row version="1.0"> <cell>Dex</cell> @@ -78,11 +148,11 @@ <cell>(!!Abilities::(2,2)!!-10)/2</cell></row> <row version="1.0"> <cell>Con</cell> - <cell>8</cell> + <cell>14</cell> <cell>(!!Abilities::(3,2)!!-10)/2</cell></row> <row version="1.0"> <cell>Int</cell> - <cell>8</cell> + <cell>18</cell> <cell>(!!Abilities::(4,2)!!-10)/2</cell></row> <row version="1.0"> <cell>Wis</cell> @@ -96,88 +166,24 @@ <macros> <macro name="" /> </macros> - </nodehandler><nodehandler class="tabber_handler" frame="400,400,9,91" icon="tabber" map="4e PC Sheet" module="containers" name="Combat" version="1.0"><nodehandler class="rpg_grid_handler" frame="400,400,354,98" icon="grid" map="4e PC Sheet::Combat" module="rpg_grid" name="To Hit" version="1.0"> - <grid autosize="1" border="1"> - <row version="1.0"> - <cell>Armor</cell> - <cell>Bonus</cell> - </row> - <row version="1.0"> - <cell>Total</cell> - <cell>!!To Hit::(2,3)!! + !!To Hit::(2,4)!!</cell> - </row> - <row version="1.0"><cell>BAB</cell><cell>0</cell></row><row version="1.0"><cell>Str Mod</cell><cell>!#Abilities::(1,3)#!</cell></row></grid> - <macros> - <macro name="" /> - </macros> -</nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,269,110" icon="grid" map="4e PC Sheet::Combat" module="rpg_grid" name="Weapons" version="1.0"> - <grid autosize="1" border="1"> - <row version="1.0"> - <cell>Weapon</cell> - <cell>Damage</cell> - </row> - <row version="1.0"> - <cell>Sword</cell> - <cell>d6</cell> - </row> - <row version="1.0"><cell>Mace</cell><cell>d8</cell></row></grid> - <macros> - <macro name="" /> - </macros> -</nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,354,98" icon="grid" map="4e PC Sheet::Combat" module="rpg_grid" name="AC Bonus" version="1.0"> - <grid autosize="1" border="1"> - <row version="1.0"> - <cell>Armor</cell> - <cell>Bonus</cell> - </row> - <row version="1.0"> - <cell>Total</cell> - <cell>!!AC Bonus::(2,3)!!</cell> - </row> - <row version="1.0"><cell>Misc</cell><cell>0</cell></row></grid> - <macros> - <macro name="" /> - </macros> -</nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,354,98" icon="grid" map="4e PC Sheet::Combat" module="rpg_grid" name="Armor" version="1.0"> - <grid autosize="1" border="1"> - <row version="1.0"> - <cell>Armor</cell> - <cell>Bonus</cell> - </row> - <row version="1.0"> - <cell>Total</cell> - <cell>!!Armor::(2,3)!!</cell> - </row> - <row version="1.0"><cell>Base</cell><cell>10</cell></row></grid> - <macros> - <macro name="" /> - </macros> -</nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,354,98" icon="grid" map="4e PC Sheet::Combat" module="rpg_grid" name="Feats" version="1.0"> - <grid autosize="1" border="1"> - <row version="1.0"> - <cell>Armor</cell> - <cell>Bonus</cell> - <cell>Descripton</cell></row> - <row version="1.0"> - <cell>Total</cell> - <cell>!!Feats(2,3)!!</cell> - <cell /></row> - <row version="1.0"><cell>Feat</cell><cell>0</cell><cell /></row></grid> - <macros> - <macro name="" /> - </macros> -</nodehandler></nodehandler><nodehandler class="tabber_handler" frame="400,400,407,67" icon="tabber" map="4e PC Sheet" module="containers" name="Utilities" version="1.0"><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet::Utilities" module="containers" name="At Will" version="1.0"><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet::Utilities::At Will" module="containers" name="0" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,426,47" icon="note" map="4e PC Sheet::Utilities::At Will::0" module="forms" name="At Will" version="1.0"> + </nodehandler><nodehandler class="tabber_handler" frame="400,400,407,67" icon="tabber" map="4e PC Sheet-WIP" module="containers" name="Utilities" version="1.0"><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet-WIP::Utilities" module="containers" name="At Will" version="1.0"><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet-WIP::Utilities::At Will" module="containers" name="0" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,426,47" icon="note" map="4e PC Sheet-WIP::Utilities::At Will::0" module="forms" name="At Will" version="1.0"> <text multiline="1" raw_mode="1" send_button="1">/me uses an At Will <b>Attack:</b> [1d20+2+!#Abilities::(2,3)#!] <b>Damage:</b> [2!#Combat::Weapons::(2,2)#!]</text> -</nodehandler></nodehandler><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet::Utilities::At Will" module="containers" name="1" version="1.0" /></nodehandler><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet::Utilities" module="containers" name="Encounter" version="1.0"><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet::Utilities::Encounter" module="containers" name="0" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,426,47" icon="note" map="4e PC Sheet::Utilities::Encounter::0" module="forms" name="Encounter" version="1.0"> +</nodehandler></nodehandler><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet-WIP::Utilities::At Will" module="containers" name="1" version="1.0" /></nodehandler><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet-WIP::Utilities" module="containers" name="Encounter" version="1.0"><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet-WIP::Utilities::Encounter" module="containers" name="0" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,426,47" icon="note" map="4e PC Sheet-WIP::Utilities::Encounter::0" module="forms" name="Encounter" version="1.0"> <text multiline="1" raw_mode="1" send_button="1">/me uses an Encounter <b>Attack:</b> [1d20+2+!#Abilities::(2,3)#!] <b>Damage:</b> [2!#Combat::Weapons::(2,2)#!]</text> -</nodehandler></nodehandler><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet::Utilities::Encounter" module="containers" name="1" version="1.0" /></nodehandler><nodehandler class="tabber_handler" frame="400,400,9,91" icon="tabber" map="4e PC Sheet::Utilities" module="containers" name="Daily" version="1.0"><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet::Utilities::Daily" module="containers" name="0" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,426,47" icon="note" map="4e PC Sheet::Utilities::Daily::0" module="forms" name="Daily" version="1.0"> +</nodehandler></nodehandler><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet-WIP::Utilities::Encounter" module="containers" name="1" version="1.0" /></nodehandler><nodehandler class="tabber_handler" frame="400,400,9,91" icon="tabber" map="4e PC Sheet-WIP::Utilities" module="containers" name="Daily" version="1.0"><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet-WIP::Utilities::Daily" module="containers" name="0" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,426,47" icon="note" map="4e PC Sheet-WIP::Utilities::Daily::0" module="forms" name="Daily" version="1.0"> <text multiline="1" raw_mode="1" send_button="1">/me uses an Daily <b>Attack:</b> [1d20+2+!#Abilities::(2,3)#!] <b>Damage:</b> [2!#Combat::Weapons::(2,2)#!]</text> -</nodehandler></nodehandler><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet::Utilities::Daily" module="containers" name="1" version="1.0" /></nodehandler></nodehandler><nodehandler class="tabber_handler" frame="400,400,9,91" icon="tabber" map="4e PC Sheet" module="containers" name="Inventory" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,115,115" icon="note" map="4e PC Sheet::Inventory" module="forms" name="Back Pack" version="1.0"> - <text multiline="1" raw_mode="0" send_button="0">Empty.</text> -</nodehandler></nodehandler></nodehandler> \ No newline at end of file +</nodehandler></nodehandler><nodehandler class="tabber_handler" icon="tabber" map="4e PC Sheet-WIP::Utilities::Daily" module="containers" name="1" version="1.0" /></nodehandler></nodehandler><nodehandler class="tabber_handler" frame="400,400,9,91" icon="tabber" map="4e PC Sheet-WIP" module="containers" name="Inventory" version="1.0"><nodehandler class="tabber_handler" frame="400,400,9,91" icon="tabber" map="4e PC Sheet-WIP::Inventory" module="containers" name="Back pack" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,115,115" icon="note" map="4e PC Sheet-WIP::Inventory::Back pack" module="forms" name="Slot 1" version="1.0"> + <text multiline="1" raw_mode="0" send_button="0">Nothing</text> +</nodehandler><nodehandler class="textctrl_handler" frame="400,400,115,115" icon="note" map="4e PC Sheet-WIP::Inventory::Back pack" module="forms" name="Slot 2" version="1.0"> + <text multiline="1" raw_mode="0" send_button="0">Nothing</text> +</nodehandler></nodehandler><nodehandler class="tabber_handler" frame="400,400,9,91" icon="tabber" map="4e PC Sheet-WIP::Inventory" module="containers" name="Belt" version="1.0"><nodehandler class="textctrl_handler" frame="400,400,115,115" icon="note" map="4e PC Sheet-WIP::Inventory::Belt" module="forms" name="Slot 1" version="1.0"> + <text multiline="1" raw_mode="0" send_button="0">Nothing</text> +</nodehandler><nodehandler class="textctrl_handler" frame="400,400,115,115" icon="note" map="4e PC Sheet-WIP::Inventory::Belt" module="forms" name="Slot 2" version="1.0"> + <text multiline="1" raw_mode="0" send_button="0">Nothing</text> +</nodehandler></nodehandler></nodehandler></nodehandler> \ No newline at end of file
--- a/plugins/xxblank.py Mon Jan 25 10:03:16 2010 -0600 +++ b/plugins/xxblank.py Mon Jan 25 12:07:48 2010 -0600 @@ -1,4 +1,4 @@ -import os +import os, wx import orpg.pluginhandler class Plugin(orpg.pluginhandler.PluginHandler): @@ -18,6 +18,16 @@ #to set their proper values. self.sample_variable = {} + def plugin_menu(self): + ## This is a standardized Menu item. It connects to plugin_toggle where you can set events. + self.menu = wx.Menu() + self.toggle = self.menu.AppendCheckItem(wx.ID_ANY, 'On') + self.topframe.Bind(wx.EVT_MENU, self.plugin_toggle, self.toggle) + self.toggle.Check(True) + + def plugin_toggle(self, evt): + pass + def plugin_enabled(self): #You can add new /commands like
--- a/plugins/xxgsc.py Mon Jan 25 10:03:16 2010 -0600 +++ b/plugins/xxgsc.py Mon Jan 25 12:07:48 2010 -0600 @@ -1,9 +1,7 @@ -import os -from orpg.orpg_wx import * +import os, wx import random import orpg.pluginhandler - ID_ROLL = wx.NewId() class Plugin(orpg.pluginhandler.PluginHandler): @@ -29,9 +27,11 @@ self.frame = RollerFrame(None, -1, "Game Status Controller (GSC)", self) self.frame.Hide() - item = wx.MenuItem(self.menu, wx.ID_ANY, "GSC Window", "GSC Window", wx.ITEM_CHECK) - self.topframe.Bind(wx.EVT_MENU, self._toggleWindow, item) - self.menu.AppendItem(item) + def plugin_menu(self): + self.menu = wx.Menu() + self.toggle = self.menu.AppendCheckItem(wx.ID_ANY, 'GSC Window') + self.topframe.Bind(wx.EVT_MENU, self._toggleWindow, self.toggle) + self.toggle.Check(False) def plugin_disabled(self): self.plugin_removecmd('/gsc') @@ -48,14 +48,12 @@ #Events def _toggleWindow(self, evt): - id = evt.GetId() - item = self.menu.FindItemById(id) if self.frame.IsShown(): self.frame.Hide() - item.Check(False) + self.toggle.Check(False) else: self.frame.Show() - item.Check(True) + self.toggle.Check(True) class RollerFrame(wx.Frame):
--- a/plugins/xxhiddendice.py Mon Jan 25 10:03:16 2010 -0600 +++ b/plugins/xxhiddendice.py Mon Jan 25 12:07:48 2010 -0600 @@ -1,5 +1,4 @@ -import os -import re +import os, re, wx import orpg.pluginhandler class Plugin(orpg.pluginhandler.PluginHandler): @@ -23,32 +22,39 @@ self.hiddenrolls = [] self.dicere = "\{([0-9]*d[0-9]*.+)\}" + def plugin_menu(self): + self.menu = wx.Menu() + self.toggle = self.menu.AppendCheckItem(wx.ID_ANY, 'On') + self.topframe.Bind(wx.EVT_MENU, self.plugin_toggle, self.toggle) + self.toggle.Check(True) + + def plugin_toggle(self, evt): + pass def plugin_enabled(self): pass - def plugin_disabled(self): pass - def pre_parse(self, text): - m = re.search(self.dicere, text) - while m: - roll = "[" + m.group(1) + "]" - self.hiddenrolls += [self.chat.ParseDice(roll)] - text = text[:m.start()] + "(hidden roll)" + text[m.end():] + if self.toggle.IsChecked() == True: m = re.search(self.dicere, text) + while m: + roll = "[" + m.group(1) + "]" + self.hiddenrolls += [self.chat.ParseDice(roll)] + text = text[:m.start()] + "(hidden roll)" + text[m.end():] + m = re.search(self.dicere, text) return text def post_msg(self, text, myself): - c = 0 - a = text.find("(hidden roll)") - - while len(self.hiddenrolls) > c and a > -1: - text = text[:a+14].replace("(hidden roll)", self.hiddenrolls[c]) + text[a+14:] + if self.toggle.IsChecked() == True: + c = 0 a = text.find("(hidden roll)") - c += 1 - if c > 0: - self.hiddenrolls = [] + while len(self.hiddenrolls) > c and a > -1: + text = text[:a+14].replace("(hidden roll)", self.hiddenrolls[c]) + text[a+14:] + a = text.find("(hidden roll)") + c += 1 + if c > 0: + self.hiddenrolls = [] return text
--- a/plugins/xxmouse-zoom.py Mon Jan 25 10:03:16 2010 -0600 +++ b/plugins/xxmouse-zoom.py Mon Jan 25 12:07:48 2010 -0600 @@ -19,6 +19,17 @@ self.help += 'wheel and the map will zoom in or out. And FAST too! \n' self.help += 'This plugin is designed for Grumpy Goblin and Ornery Orc.' + def plugin_menu(self): + self.menu = wx.Menu() + self.toggle = self.menu.AppendCheckItem(wx.ID_ANY, 'On') + self.topframe.Bind(wx.EVT_MENU, self.plugin_toggle, self.toggle) + self.toggle.Check(True) + + def plugin_toggle(self, evt): + if self.toggle.IsChecked() == False: self.canvas.Disconnect(-1, -1, wx.wxEVT_MOUSEWHEEL) + if self.toggle.IsChecked() == True: + self.canvas.Bind(wx.EVT_MOUSEWHEEL, self.MouseWheel) + def plugin_enabled(self): try: self.canvas = component.get('map').canvas except: self.canvas = open_rpg.get_component('map').canvas @@ -26,12 +37,12 @@ def MouseWheel(self, evt): if evt.CmdDown(): - print evt.GetWheelRotation() if evt.GetWheelRotation() > 0: self.canvas.on_zoom_in(None) elif evt.GetWheelRotation() < 0: self.canvas.on_zoom_out(None) else: pass else: self.canvas.on_scroll(evt) def plugin_disabled(self): - self.canvas.Disconnect(-1, -1, wx.wxEVT_MOUSEWHEEL) + try: self.canvas.Disconnect(-1, -1, wx.wxEVT_MOUSEWHEEL) + except: pass
--- a/plugins/xxspell.py Mon Jan 25 10:03:16 2010 -0600 +++ b/plugins/xxspell.py Mon Jan 25 12:07:48 2010 -0600 @@ -1,4 +1,4 @@ -import os +import os, wx import orpg.pluginhandler class Plugin(orpg.pluginhandler.PluginHandler): @@ -17,6 +17,15 @@ self.help += "even corrects other people's spelling." self.checklist = {} + def plugin_menu(self): + self.menu = wx.Menu() + self.toggle = self.menu.AppendCheckItem(wx.ID_ANY, 'On') + self.topframe.Bind(wx.EVT_MENU, self.plugin_toggle, self.toggle) + self.toggle.Check(True) + + def plugin_toggle(self, evt): + pass + def plugin_enabled(self): #This is where you set any variables that need to be initalized when your plugin starts #You can add new /commands like @@ -34,11 +43,13 @@ return text def plugin_incoming_msg(self, text, type, name, player): - text = self.replace(text) + if self.toggle.IsChecked() == True: + text = self.replace(text) return text, type, name def pre_parse(self, text): - text = self.replace(text) + if self.toggle.IsChecked() == True: + text = self.replace(text) return text def on_spell(self, cmdargs):
--- a/plugins/xxurl2link.py Mon Jan 25 10:03:16 2010 -0600 +++ b/plugins/xxurl2link.py Mon Jan 25 12:07:48 2010 -0600 @@ -1,6 +1,5 @@ -import os +import os, re, wx import orpg.pluginhandler -import re class Plugin(orpg.pluginhandler.PluginHandler): # Initialization subroutine. @@ -19,6 +18,15 @@ self.url_regex = None self.mailto_regex = None + def plugin_menu(self): + self.menu = wx.Menu() + self.toggle = self.menu.AppendCheckItem(wx.ID_ANY, 'On') + self.topframe.Bind(wx.EVT_MENU, self.plugin_toggle, self.toggle) + self.toggle.Check(True) + + def plugin_toggle(self, evt): + pass + def plugin_enabled(self): #This is where you set any variables that need to be initalized when your plugin starts self.url_regex = re.compile("(?<![\[=\"a-z0-9:/.])((?:http|ftp|gopher)://)?(?<![@a-z])((?:[a-z0-9\-]+[-.]?[a-z0-9]+)*\.(?:[a-z]{2,4})(?:[a-z0-9_=\?\#\&~\%\.\-/\:\+;]*))", re.I) @@ -31,13 +39,15 @@ pass def pre_parse(self, text): - text = self.mailto_regex.sub(self.regmailsub, text) - text = self.url_regex.sub(self.regurlsub, text) + if self.toggle.IsChecked() == True: + text = self.mailto_regex.sub(self.regmailsub, text) + text = self.url_regex.sub(self.regurlsub, text) return text def plugin_incoming_msg(self, text, type, name, player): - text = self.mailto_regex.sub(self.regmailsub, text) - text = self.url_regex.sub(self.regurlsub, text) + if self.toggle.IsChecked() == True: + text = self.mailto_regex.sub(self.regmailsub, text) + text = self.url_regex.sub(self.regurlsub, text) return text, type, name def regmailsub(self, m):