Jump to content




[API] Mouse and graphic api V1.6.1 beta. Easy to use GUI API with full mouse support

api utility media

  • You cannot reply to this topic
108 replies to this topic

#81 Rwkeith

  • Members
  • 56 posts

Posted 07 January 2013 - 07:01 AM

Very nice man. Keep up the work. P.S. I got BF3 too for christmas(xbox) =D

#82 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 07 January 2013 - 08:10 AM

Thanks you :) I got it for pc, it run in ultra :P

#83 ArchAngel075

  • Members
  • 149 posts

Posted 07 January 2013 - 02:11 PM

For that setlist idea ill try to put together a concept of it, perhaps make the code for it and you can add to your api, but it will take a month at least since my prog comes first in everything(except anime XD)

#84 ArchAngel075

  • Members
  • 149 posts

Posted 08 January 2013 - 08:04 PM

Ok i have the concept for the setlist box i was talking about,

i use "#"s instead of coloured pixels since the drawPixel() seems to overwrite anything with that colour.

here is the code, quick and simple..

NOTE : to use the program you select a item in a list(one of the two boxes) and then then if you click on the "%" in the middle it will swap over to the other side... this idea can be useful for moving objects or things around bbetween two lists of things... My personal use would be to have the two lists represent EnabledMovies and DisabledMovies in AngelTV...

small edits were made, since its mostly intended for angelTV, but if you can maybe get it to work in the API it will be more useful and usable..

Spoiler


#85 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 09 January 2013 - 07:34 AM

I will look what it make tomorrow :) Anyways thanks you :D

#86 ArchAngel075

  • Members
  • 149 posts

Posted 09 January 2013 - 11:16 AM

i discovered how to make the SWAP button centre more properly using the % operator... everything in the program autosizes, even the position of the SWAP button(it tries to stay centred) though there is no way to pull what is the current position of an option and i know of a way to allow the managing of multiple sets(a simple reset table and add the new values while externally saving old values)

i will maybe post the updated version unless you wish to take up on it since mine uses # and you can perhaps adapt it to use pixels like in your API

#87 Oct125

  • Members
  • 49 posts

Posted 10 January 2013 - 05:35 AM

View PostArchAngel075, on 05 January 2013 - 08:58 AM, said:

I am now back in action aside from small driver issues, but anyhow :

I will play around with 1.5 ASAP, and I have two suggestions! :

TickBox
draws a 3x3 box where its centre is green or red, if ticked = green if not ticked = red,

setLists
i've no idea what to call them really.. but they are simply two boxes witha button between them, the boxes contain a list of things, like place names or what have you(user defined) and allow you to set if (for this example) placeA to true, placeB - D to false and then placeE to true again.. And one can quickly return what the value of a place is..
-Its like a multi-version of the tickbox, to change a places value you click its name in the box and click the button between the boxes(which in Windows can be two arrows going right/left)

ill elaborate more if needed...

The tick box will be really useful!
And Bjornir, i've made a installer in my OS that copies the API from your pastebin ok?

#88 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 10 January 2013 - 05:37 AM

View PostOct125, on 10 January 2013 - 05:35 AM, said:

View PostArchAngel075, on 05 January 2013 - 08:58 AM, said:

I am now back in action aside from small driver issues, but anyhow :

I will play around with 1.5 ASAP, and I have two suggestions! :

TickBox
draws a 3x3 box where its centre is green or red, if ticked = green if not ticked = red,

setLists
i've no idea what to call them really.. but they are simply two boxes witha button between them, the boxes contain a list of things, like place names or what have you(user defined) and allow you to set if (for this example) placeA to true, placeB - D to false and then placeE to true again.. And one can quickly return what the value of a place is..
-Its like a multi-version of the tickbox, to change a places value you click its name in the box and click the button between the boxes(which in Windows can be two arrows going right/left)

ill elaborate more if needed...

The tick box will be really useful!
And Bjornir, i've made a installer in my OS that copies the API from your pastebin ok?
Ok that's fine for me :)

#89 Rwkeith

  • Members
  • 56 posts

Posted 11 January 2013 - 08:29 AM

Is it possible to draw an image to the screen?

#90 ArchAngel075

  • Members
  • 149 posts

Posted 11 January 2013 - 11:10 AM

using paintutils.loadImage(path) you can

first use
xyz = paintutils.loadImage(path) -- where xyz can be any variable.

then use
paintutils.drawImage(image, x, y) -- image being that xyz you specified above, and x,y is the topleft most point to start rendering it from afaik.

all info on the paintutils is found on paintutils

if this is not what you meant then please try to elaborate.

-end-

#91 ArchAngel075

  • Members
  • 149 posts

Posted 11 January 2013 - 11:01 PM

New request :

Drag n Replace lists

It will render a list using an table, if user selects two items in the list they will swap places within the table...

I am already writing a concept for it, i have render down i just need to add the dlGetSelection()
,

it will hopefully presave the last known selection so that any other actions can be done within. I may add a cancel using mouse2 or backspace etc.. it is still a concept piece though...

#92 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 12 January 2013 - 06:56 AM

View PostArchAngel075, on 11 January 2013 - 11:10 AM, said:

using paintutils.loadImage(path) you can

first use
xyz = paintutils.loadImage(path) -- where xyz can be any variable.

then use
paintutils.drawImage(image, x, y) -- image being that xyz you specified above, and x,y is the topleft most point to start rendering it from afaik.

all info on the paintutils is found on paintutils

if this is not what you meant then please try to elaborate.

-end-
Thanks you for support in my post ;)

#93 ArchAngel075

  • Members
  • 149 posts

Posted 12 January 2013 - 07:08 AM

im browsing by often, awaiting any updates and suggestions to conceptualize.. BTW

yet another suggestion ill concept(i love conceptualizing ideas XD) :

drag panes, it will at first be a square or rectangular box drawn on screen with a title, if clicked upon it will "drag" the pane out and render a list of buttons. if the sqaure is again clicked it closes.
(the closest name would be drop down tabs)

-One can perhaps support too many buttons(making it render off screen) by catching the screen size, and then making an auto scroll bar to scroll within the panel...

id be happy to try my hand at the auto scroll bar system since it can come in handy?
,

the drag n Replace concept is priority atm.
-

#94 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 12 January 2013 - 10:31 AM

View PostArchAngel075, on 12 January 2013 - 07:08 AM, said:

im browsing by often, awaiting any updates and suggestions to conceptualize.. BTW

yet another suggestion ill concept(i love conceptualizing ideas XD) :

drag panes, it will at first be a square or rectangular box drawn on screen with a title, if clicked upon it will "drag" the pane out and render a list of buttons. if the sqaure is again clicked it closes.
(the closest name would be drop down tabs)

-One can perhaps support too many buttons(making it render off screen) by catching the screen size, and then making an auto scroll bar to scroll within the panel...

id be happy to try my hand at the auto scroll bar system since it can come in handy?
,

the drag n Replace concept is priority atm.
-
I've thougt of it also, but the tick box is my priority :)

#95 ArchAngel075

  • Members
  • 149 posts

Posted 12 January 2013 - 02:21 PM

OK!, a small question, will you use getSelection() for all selection-related events ? since then i might be able to use it to make conceptuals better...Also do you have any clue to how to prioritise buttons so that popup-related-buttons overlapping normal buttons will fire first since they overlap? or is this internally handled already?

I havent really looked at thelatest version of the API, i might be able to find some tweaks if possible... else ill look into linking my concepts into them for better compatibility...

#96 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 12 January 2013 - 06:54 PM

View PostArchAngel075, on 12 January 2013 - 02:21 PM, said:

OK!, a small question, will you use getSelection() for all selection-related events ? since then i might be able to use it to make conceptuals better...Also do you have any clue to how to prioritise buttons so that popup-related-buttons overlapping normal buttons will fire first since they overlap? or is this internally handled already?

I havent really looked at thelatest version of the API, i might be able to find some tweaks if possible... else ill look into linking my concepts into them for better compatibility...
I'm not going to use getSelection() because it erase the buffer for the detection part. So you need to redeclare everythings already drawed to the screen if I use it. As the tickbox should be clickable as well as other buttons, I don't really know how I will do that actually :P. Oh and for the popUp, only the buttons on popUp are clickable, it is internally handled by popUp()

#97 ArchAngel075

  • Members
  • 149 posts

Posted 12 January 2013 - 07:46 PM

I was thinking that if an event is used in a while loop to get the mouseX and mouseY, then it will use if thens- to check the coords to see if they are part of a list of :

popups;dragmenus;tickbox;button

it will prioritise what will be found first on the overlaying buttons using elseif> if it is higher in the elseif chain then it will handle the button as that type and then continue to process which button of that type was pressed exactly and then return a value.. it could be possible to use ids like you have for buttons, but can you maybe also return a type for future versions ? this is so each type has an internal buffer, and id list... will be easier removing specific ones in a list..

but if a universal id is made, if you use a seperate table that tracks types > if buttonID[5] was a tickbox then buttonType[5] is a tickbox, just match the index?

honestly ill play around with ideas...Maybe look at the API and see where we can exploit anything to get it.

#98 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 13 January 2013 - 09:54 AM

Well I like the idea of universal id and it shouldn't be too difficult to make.... I will definitely make it, in the 2.0 version :P

#99 ArchAngel075

  • Members
  • 149 posts

Posted 13 January 2013 - 02:07 PM

cool, Ive been playing on servers so much i haven't any work done on conceptuals.... Perhaps I'll finish up drag menu tonight..

actually question is if conceptuals help at all :P

#100 bjornir90

  • Members
  • 378 posts
  • LocationFrance

Posted 14 January 2013 - 05:43 AM

Yes, yes it's useful, it just take time to add new features as I work on multiples projects so this is especially useful :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users