Welcome
StatusBar
1.4.0.0
This plugin creates a status bar for all pages and dialogs in your project.
The current status is dynamic and will be displayed on all pages and dialogs without employing extra code to display it.
Note: the status bar object is not a windowed object and will, therefore, be overridden by any intercepting windowed objects.
View the help file for more information.
Version History
1.1.0.0
Configured status bar object to auto-resize with page/dialog resize
Updated the Color fields in the StatusBar.Create() function to use color boxes
1.2.0.0
Fixed a bug in the dialog resize code
Added Image(as status bar icon) support
1.2.0.1
Simplified the creation process and variables
Fixed a bug that caused an error when no image file was specified
1.3.0.0
Added side and bottom padding options
Added the ability to make the StatusBar background and/or border transparent
1.4.0.0
Updated to be compatible with AMS 8.0
Updated the IRLua Plugin Helper Functions to v2.6
Free to use and distribute.
Centauri Soldier
www.AMSPublic.com
CentauriSoldier@AMSPublic.com
Copyright © 2010 AMSPublic.com
Place the "StatusBar" folder in your "AutoPlay Media Studio 7.0\Plugins\Actions" folder.
StatusBar.Create
StatusBar.GetHeight
StatusBar.GetStatus
StatusBar.Hide
StatusBar.SetStatus
StatusBar.SetTitle
StatusBar.Show
StatusBar.Create ( | (boolean) Use Transparent Background = false, (number) Background Color = 12632256, (boolean) Use Transparent Border = false, (number) Border Color = 0, (number) Text Color = 0, (variant) Height = nil, (number) Side Padding = 0, (number) Bottom Padding = 0, (string) Font Name = "", (variant) Font Size = nil, (number) Font Weight = FW_NORMAL, (boolean) Italic = false, (string) Image Icon = "", (boolean) Use Transparent Color = false, (number) Transparent Color = 0, (number) Opacity = 100, (number) Tolerance = 10 ) |
This action must be called in your globals. It creates the status bar object.
Note: If you are running any plugins that modifiy Page or Dialog script, be aware that this action writes script to the "On Show" event of each page and dialog.
(boolean) Whether or not to make the status bar background transparent
(number) The color to which the background will be set.
(boolean) Whether or not to create the status bar with a transparent border.
(number) The color to which the border will be set.
Note: Set to nil to use the default height.
(number) The color to which the text will be set.
Note: Leave blank to use the default font.
(variant) The height of the status bar. Set to nil to use the default height.
(number) The distance from each side of the application window to its respective status bar side.
(number) The distance that the status bar will be from the bottom of the window.
(string) The font to use for the status bar text.
Note: Leave blank to use no image icon.
(variant) The size of the status bar font. Set to nil to use the default font size.
(number) The weight of the font (how "dark" the text will appear).
CONSTANT | VALUE | DESCRIPTION |
FW_DONTCARE | NA | NA |
FW_THIN | NA | NA |
FW_EXTRALIGHT | NA | NA |
FW_LIGHT | NA | NA |
FW_NORMAL | NA | NA |
FW_MEDIUM | NA | NA |
FW_SEMIBOLD | NA | NA |
FW_BOLD | NA | NA |
FW_EXTRABOLD | NA | NA |
FW_HEAVY | NA | NA |
(boolean) Whether or note the status bar text will be italic.
Value | Description |
true | true |
false | (Default) false |
(string) The path to the image file which will be used as a status bar icon.
(boolean) Whether or not to use a transparent color in the image.
Value | Description |
true | Creates the status bar with a transparent background |
false | (Default) Creates the status bar with a solid background |
(number) The color in the image icon which will be transparent.
(number) The opacity of the image (0 being completely transparent and 100 being opaque).
(number) The tolerance to use for the transparent color, between 0 and 100. 0 requires an exact match to the Transparent color. Increasing this value allows shades of the Transparent Color to be transparent as well.
This action dose not return any value.
(number) StatusBar.GetHeight () |
Returns the height of the status bar object.
(number) Returns a number representing the height of the status bar object.
If no status bar exists then nil is returned.
(string) StatusBar.GetStatus () |
Gets the current status set by StatusBar.SetStatus
(string) Returns the text of the status bar. If there is no status then a blank string is returned.
StatusBar.Hide () |
Hides the status bar.
This action dose not return any value.
StatusBar.SetStatus ( | (string) Text = "Loading" ) |
Set the text in the status bar object.
Note: This function does not change the title of the status bar. Use StatusBar.SetTitle for that.
(string) The text to place in the status bar.
This action dose not return any value.
StatusBar.SetTitle ( | (string) Title = "Status: " ) |
Set the title text in the status bar object.
(string) The text to which the status bar title will be set.
This action dose not return any value.
StatusBar.Show () |
Shows the status bar (if hidden).
This action dose not return any value.
Copyright © 2010 AMSPublic.com
This File Was Generated With AMS ActionFile Editor