skip to content
Doomsday Manual
User Tools
Admin
Log In
Site Tools
Search
Tools
Show page
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
Trace:
script:module:gui
====== gui (Module) ====== Utilities for GUI applications. ===== Functions ===== #@Identifier_HTML~colorAlpha~@# ( #@UArg_HTML~colorVector~@#, #@Arg_HTML~Number,alpha~@# ) Returns a new color with the alpha value changed to //alpha//. #@Identifier_HTML~colorMix~@# ( #@UArg_HTML~a~@#, #@UArg_HTML~b~@#, #@Arg_HTML~Number,amount~@# ) Returns a color where vectors //a// and //b// are interpolated by //amount//. If //amount// is 0, the result is //a//; if //amount// is 1, the result is //b//. #@Identifier_HTML~dpiScaledImagePath~@# ( #@Arg_HTML~Text,path~@# ) Returns a version of //path// where "@2x" is appended to the end if ''DisplayMode.PIXEL_RATIO'' is 2 (approximately). #@Identifier_HTML~scale~@# ( #@UArg_HTML~value~@#, #@Arg_HTML~Number,factor~@# ) Scales a value by //factor//. If //value// is a text string, the suffixes "pt" and "px" (point, pixel) are retained in the result. ; //value// : Value to scale. Number or Text, may have "pt" or "px" as suffix. ; //factor// : Scale factor. #@Identifier_HTML~setDefaults~@# ( #@Arg_HTML~Record,d~@# ) Populate record //d// with the default configuration variables for a GUI app.
script/module/gui.txt
ยท Last modified: 2019-11-17 18:55 by
skyjake
Page Tools
Show page
Old revisions
Backlinks
Rename Page
Back to top
Doomsday
Engine
2.3
⇣
Builds
Add-ons
Manual
·
Forums
Support
Bug
Tracker
Blog