GTA Palette & Mouse SCM APIMany of people have asked how to create UI interface in CLEO SCM, but most of them have no required knowledge to know how to begin.
However creators of CLEO added useful commands such as 0AB1 and 0AB2 that make it possible to simulate classes from modern programming languages.
When combined with method of additional variables, we’re able to do something than usual 0AB1 SCM functions.
The subject described in this document is easy-to-use circular HSV palette with few buttons to select color, alpha and switch whether value of color shall be maximized when particular color is being chosen by clicking on palette.
Reasonably a mouse support is easy to use as well. It occurs as a matter of 3 opcodes to add in source of project.
What’s more – you can use more than one instance of palette and draw it on screen. Feel free to use palette and mouse cursor in whichever project where you can find these things useful.
As time goes by - GTA SA modding is still growing up.
Fully compatible with GTA San Andreas v1.0 [US] HOODLUM No-CD Fixed EXE & GTA: San Andreas v1.01 [EURO] No-CD/Fixed EXE
Fully compatible with any screen resolution (4:3, 16:9, 16:10...)
Fully compatible with CLEO3 and newer
- - - - - - - - - - - - - - - - - -
Downloadhttp://www.mediafire.com/?8irp00v7a2jqr64
***** How to use
Open Readme.docx and read more about it.
***** Changes in 1.1 version:
- enlarged "hsvPalette" texture to 512 x 512 px
- fixed number of input parameters in example of function @PaletteHSVCircle_setHSVcolor
- added aliases such as:
PaletteHSVCircle_getRGBcolor and PaletteHSVCircle_readRGBcolor
PaletteHSVCircle_getRGBAcolor and PaletteHSVCircle_readRGBAcolor
PaletteHSVCircle_getHSVcolor and PaletteHSVCircle_readHSVcolor
- added automatic rescaling when user has changed the game resolution
- fixed incorrect change of position when PaletteHSVCircle_RescaleAllObjects is used subsequently
***** 1.1 is 100% compatible with previously written scripts.
***** Informations:
Date of release: 02-05-2012 (d-m-Y)
Author: fastman92
Version: 1.1
For: GTA San Andreas
Visit fastman92-site.tk
This post has been edited by fastman92 on Wednesday, May 2 2012, 19:58