IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

The Mod Showroom is only for posting previews/downloads of completed or near finished mods.
All help topics should be posted in the Editing Discussion forums. Help topics and mod requests posted here will be locked or binned. Thank you.
GTAGarage.com : Free mod hosting, attach your files and screenshots to your topics
GTAModding.com : A wiki for everything related to GTA modding, including documentation and tutorials

  Reply to this topicStart new topicStart Poll

 GTA Palette & Mouse SCM API

 Lets you to use mouse cursor & palette
 
fastman92  
Posted: Thursday, Apr 5 2012, 17:00
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



GTA Palette & Mouse SCM API


Many 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
- - - - - - - - - - - - - - - - - -

Download
http://www.mediafire.com/?8irp00v7a2jqr64

user posted image


***** 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
Users WebsitePMMSN
  Top
 

 
MinnieMan121249  
Posted: Thursday, Apr 5 2012, 19:41
Quote Post


Group: Yardies
Group Icon
Group: Members
Joined: Jun 19, 2008

ja.gif

Member Award




Can you please make a video of how this works ingame? It looks very interesting.
Users WebsitePM
  Top
 

 
fastman92  
Posted: Thursday, Apr 5 2012, 19:46
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



I have only a video of the In-game Timecyc Editor (project already), where palette is used.

On the video, button to switch option, brightening value of color when color is chosen by clicking on palette didn't exist yet.

What i made is Palette & Mouse Cursor SCM Framework for which you will need little skill of CLEO scripting.

It's FOR SCRIPTERS, who want use mouse cursor and possibly a palette in their projects.

Please download archive and open Readme.docx to read more.

This post has been edited by fastman92 on Thursday, Apr 5 2012, 19:51
Users WebsitePMMSN
  Top
 

 
DK22Pac  
Posted: Thursday, Apr 5 2012, 20:45
Quote Post


Assembly!
Group Icon
Group: Members
Joined: Apr 12, 2009

un.gif

XXXXX



This interface is much better than SA's panels.
Users WebsitePM
  Top
 

 
Deji  
Posted: Thursday, Apr 5 2012, 21:55
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



I miss working with these kind of interfaces. Can't wait until L.A.M.E. is the next thing on my todo list...

Mouse is tiny, though tounge2.gif
Users WebsitePM
  Top
 

 
juarez  
Posted: Tuesday, May 1 2012, 16:12
Quote Post


Rat
Group Icon
Group: Members
Joined: Jun 11, 2011

pl.gif

XXXXX



Very nice. Good job. wink.gif
Users WebsitePM
  Top
 

 
fastman92  
Posted: Wednesday, May 2 2012, 20:01
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



Thanks for replies.

I updated version to 1.1:
QUOTE

***** 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.


Note that anyone can use the palette in their projects freely. You can use it whenever needed. Example: car color editor.
Upcoming In-game Timecyc 1.7 will be integrated with GTA Palette & Mouse SCM API.

This post has been edited by fastman92 on Wednesday, May 2 2012, 20:05
Users WebsitePMMSN
  Top
 

 
Midnightz  
Posted: Sunday, Nov 11 2012, 21:02
Quote Post


Populus vult decipi.
Group Icon
Group: Members
Joined: Feb 5, 2007

us.gif

XXXXX



It would be nice to see something like this replace the mod shop color picker in-game. icon14.gif Gonna take a look...
Users WebsitePM
  Top
 

 
HeresOtis  
Posted: Sunday, Mar 10 2013, 05:45
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Apr 29, 2011

XXXXX



You should include a sample that demonstrates how to check if a drawn texture has been clicked on, because I couldn't understand it in the PaletteCircleHandling.
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG