Function to make prettier forms
Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice
Function to make prettier forms
Hello
I create a couple of simple functions that allow to make more attractive forms (take a look to the image).
Use: frameOpen(number from 0 to 4).... your form code .... frameClose(same number)
The function draws a resizable background to the form. At the moment there are only 5 styles, but you can add more by editing the image table.
Instalation: Copy the lib token to your campaign and import the table. Run onCampaignLoad.
You can tests it by running the example in the lib token.
UPDATE!! new lib token and tables for use with frame5 function. Is not fully tested:
I create a couple of simple functions that allow to make more attractive forms (take a look to the image).
Use: frameOpen(number from 0 to 4).... your form code .... frameClose(same number)
The function draws a resizable background to the form. At the moment there are only 5 styles, but you can add more by editing the image table.
Instalation: Copy the lib token to your campaign and import the table. Run onCampaignLoad.
You can tests it by running the example in the lib token.
UPDATE!! new lib token and tables for use with frame5 function. Is not fully tested:
- Attachments
-
- lib_frames-html5.rptok
- (24.71 KiB) Downloaded 46 times
-
- frame-html5.mttable
- (2.04 MiB) Downloaded 44 times
-
- screen capture.jpg (490.81 KiB) Viewed 6811 times
-
- lib_frames.rptok
- (16.56 KiB) Downloaded 213 times
-
- frames.mttable
- (1.9 MiB) Downloaded 221 times
Last edited by Nildik on Wed May 26, 2021 8:15 pm, edited 2 times in total.
Re: Function to make prettier forms
Nice work. The best place for this would be in the User Creations section where it would get the most light of day. Did you make the icons for the Campaign buttons yourself? I've been using Aion and WoW sets and have been looking around for a change of scene.
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: Function to make prettier forms
Very nice. I will definitely be using this in the future. I've done something similar, but this looks much nicer. I like the implementation of your method as well instead of passing the output to the function, you just generate the opening and closing table information.
Question about the "Ankheg" form. Is the top part a part of frame0, or is that a different frame within a frame?
I think the best part is that you can adapt this to existing frames without a bunch of fuss. Just surround your output with your function calls.
Question about the "Ankheg" form. Is the top part a part of frame0, or is that a different frame within a frame?
I think the best part is that you can adapt this to existing frames without a bunch of fuss. Just surround your output with your function calls.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Function to make prettier forms
Nice!! I've never gone through the trouble of pimping my forms, but seeing this it can be a really good trade off, much yield for little effort, thanks for the contribution!
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: Function to make prettier forms
Thanks for your interest!
Lee: For the icons of the campaign panel I use edited images from the web, and personal creations. I use as well modified buttons from mmorpgs. If you like, I can share them.
Aliasmask: the top part of frame is the same frame, not a frame within a frame. The function frameOpen can have two more args, for write a title into the top of every frame, but only fits ok in the frame 0 and the frame 1
[R: frameOpen(1,"EXAMPLES OF FRAMES (this is the frame number 1)","WHITE")]
the first arg is the style frame to use, the second is the title and the third arg is the color of the title.
Lee: For the icons of the campaign panel I use edited images from the web, and personal creations. I use as well modified buttons from mmorpgs. If you like, I can share them.
Aliasmask: the top part of frame is the same frame, not a frame within a frame. The function frameOpen can have two more args, for write a title into the top of every frame, but only fits ok in the frame 0 and the frame 1
[R: frameOpen(1,"EXAMPLES OF FRAMES (this is the frame number 1)","WHITE")]
the first arg is the style frame to use, the second is the title and the third arg is the color of the title.
- JamzTheMan
- Great Wyrm
- Posts: 1872
- Joined: Mon May 10, 2010 12:59 pm
- Location: Chicagoland
- Contact:
Re: Function to make prettier forms
Wow, that is very nice looking! And that looks very simple to use! I can see a lot of frameworks incorporating that in soon(tm).
...Now off to add it myself
...Now off to add it myself
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
Re: Function to make prettier forms
Sure One can't have too many image assets.Nildik wrote:Thanks for your interest!
Lee: For the icons of the campaign panel I use edited images from the web, and personal creations. I use as well modified buttons from mmorpgs. If you like, I can share them.
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: Function to make prettier forms
This sounds cool!!!I can see a lot of frameworks incorporating that in soon(tm).
...Now off to add it myself
-----
The assets from my campaign panel...
- Attachments
-
- campaign functions assets.zip
- (99.42 KiB) Downloaded 129 times
Re: Function to make prettier forms
This is way cool thanks for sharing.
DCI/RPGA# 7208328396 Skype ID mfrizzell77
Characters:
Strabor - Dwarf Avenger 5th Level
Tikkanan - Human Warlock 2nd Level
----------------------------------------------------
"People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs."
Characters:
Strabor - Dwarf Avenger 5th Level
Tikkanan - Human Warlock 2nd Level
----------------------------------------------------
"People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs."
Re: Function to make prettier forms
I add 4 frames to the function. Just download the table and import it. Nothing to change to lib token, the function works in the same way, buy now you can add 4 new numbers into the arguments of the function.
I would like to know if anybody has planned to use this function for their frameworks and creations.
I would like to know if anybody has planned to use this function for their frameworks and creations.
- Attachments
-
- FRAMES2.jpg (176 KiB) Viewed 6715 times
-
- frames.mttable
- (2.96 MiB) Downloaded 135 times
Re: Function to make prettier forms
Again, nice work. I do plan to use this, though my framework's taken the back seat while I'm working on the actual MapTool source. Is there any chance you have an oriental flavored theme(s) on the pipe?
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: Function to make prettier forms
I plan to use it. Thanks
DCI/RPGA# 7208328396 Skype ID mfrizzell77
Characters:
Strabor - Dwarf Avenger 5th Level
Tikkanan - Human Warlock 2nd Level
----------------------------------------------------
"People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs."
Characters:
Strabor - Dwarf Avenger 5th Level
Tikkanan - Human Warlock 2nd Level
----------------------------------------------------
"People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs."
Re: Function to make prettier forms
I just restarted work (again) on my Spell Library and I plan to use it for that.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Function to make prettier forms
Anything like that?Lee wrote:Is there any chance you have an oriental flavored theme(s) on the pipe?
If you have images from a game or a webpage with oriental flavor send it to me. I can transform it in a new frame.
- Attachments
-
- example.jpg (118.88 KiB) Viewed 6691 times
-
- frames2.mttable
- (3.69 MiB) Downloaded 133 times
Re: Function to make prettier forms
Awesomesauce! Do you happen to have some sci fi (or even better: steam punk) as well?
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS