Jump to content

Recommended Posts

NeXuS™ presents dxLib

Introduction

You want to work with dx functions, but you don't understand them? This is a script for you.
You can create panels created by dx functions just like with GUI functions.

Status

IN DEVELOPMENT
Sorry guys, its not finished yet, so I'm not publishing it.
This is just a show off, that you'll get this in weeks.

Whats done already

Spoiler

dxCreateWindow
dxCreateLabel
dxWindowSetMovable
dxWindowGetMovable
dxWindowSetSizable
dxWindowGetSizable
dxSetVisible
dxGetVisible
dxLabelSetColor
dxLabelGetColor
dxLabelGetFontHeight
dxLabelSetHorizontalAlign
dxLabelSetVerticalAlign

Screenshots

Spoiler

mta-screen_2017-03-17_21-13-42.png

Syntax

Spoiler

dxElement dxCreateWindow ( float x, float y, float width, float height, string titleBarText, bool relative )
dxElement dxCreateLabel ( float x, float y, float width, float height, string text, bool relative, [element parent = nil] )
bool dxWindowSetMovable ( dxElement.window dxElement, bool boolMovable )
bool dxWindowGetMovable ( dxElement.window dxElement )
bool dxWindowSetSizable ( dxElement.window dxElement, bool boolSizable )
bool dxWindowGetSizable ( dxElement.window dxElement )
bool dxSetVisible ( dxElement dxElement, bool boolVisible )
bool dxGetVisible ( dxElement dxElement )
bool dxLabelSetColor ( dxElement.label dxElement, int tR, int tG, int tB )
int, int, int dxLabelGetColor ( dxElement.label dxElement)
int dxLabelGetFontHeight ( dxElement.label dxElement)
bool dxLabelSetHorizontalAlign ( dxElement.label dxElement, string alignType)
bool dxLabelSetVerticalAlign ( dxElement.label dxElement, string alignType)

Edited by NeXuS™
Added more features
  • Like 11
  • Thanks 3
Link to post
6 minutes ago, #BrosS said:

OMG this is amazing !!

but i'm i able to move the dxwindow ?

and what does it mean DEV ?:p

by looking in section of "What's Done", yes it will be movable or more precisly it is. "DEV" Means 'Development' which he mean't by WIP (Work in Progress).

  • Like 1
Link to post

The window is already movable, and sizable. If you wish to, you can turn those off, by using dxWindowSetMovable and dxWindowSetSizable functions. And yes, DEV means it's WIP.

  • Like 3
Link to post
  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...