Author Topic: [XP] Mouse Window API  (Read 12825 times)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
[XP] Mouse Window API
« on: August 13, 2010, 06:42:02 PM »
Mouse Window API
Authors: Ryex
Version: 2.0
Type: Scripter API for the creation of mouse controllable windows
Key Term: Scripting Tool

Introduction

I developed this as part of Remexos, however, I decided that it was too good to deprive the community of, as such I asked for permission to release the API to the public.

Features

  • Drag-able windows
  • scrollable windows contents
  • Check box control
  • List box control
  • Button control
  • IconBox control
  • IconBox List control
  • Right Click Windows
  • hover functionality
  • data dragging
  • put an icon under the mouse when dragging data
  • all controls can be disabled
  • a window controller that handles all input and allows for easy window updating
  • a control call back system that allows a button to call a method in any currently class when clicked
  • the project comes with two sample windows featuring all the features and a sample scene that replaces the title screen to so how the API works
  • it is simple to create more controls than the ones provides in the mouse window system
  • it would be simple to add a skinning system to the API windows instead of the default black and white
  • the API is full commented

Screenshots

NA


Demo

.7z archive - can be opened with the free, open source program 7-zip
Mediafire


Script

contains only .txt files of the script's parts. full dependencies not included, see demo for all required scripts
Mediafire


Instructions

See Demo Project

Compatibility

This API Requires Blizzard's Mouse Controller and either Custom Controls from Tons of Add-ons, Blizz-ABS or RMX-OS.
It may work with another mouse system out of the box but it might take some editing of the two systems.

Credits and Thanks

  • Ryex
  • G_G, for the template of the Check box control, saved me a few hours of work

Author's Notes

This was developed as part of Remexos, please support the project. Any bugs or questions? Ask here.
« Last Edit: October 01, 2011, 08:15:34 AM by Ryex »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: [XP]Mouse Window API
« Reply #1 on: August 13, 2010, 06:56:50 PM »
nice lvl ++
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline stripe103

  • Astral Trancist
  • *****
  • Posts: 570
  • LV: 18
  • Gender: Male
    • View Profile
Re: [XP]Mouse Window API
« Reply #2 on: August 13, 2010, 08:42:29 PM »
Finally a public window script that works! :D

By Axerax

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: [XP]Mouse Window API
« Reply #3 on: August 13, 2010, 09:56:35 PM »
BTW add this so it never needs to be updated

Code: [Select]
$mouse_window_controller = Mouse_Window::Controller.new
#==============================================================================
# module Input
#==============================================================================

module Input
  
  class << Input
    alias update_Mouse_Window update
  end
  
  def self.update
    $mouse_window_controller.update
    update_Mouse_Window
  end
  
end

edit a suggestion icon buttons
« Last Edit: August 13, 2010, 09:58:18 PM by nathmatt »
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP]Mouse Window API
« Reply #4 on: August 14, 2010, 12:53:04 AM »
BTW add this so it never needs to be updated

Code: [Select]
$mouse_window_controller = Mouse_Window::Controller.new
#==============================================================================
# module Input
#==============================================================================

module Input
  
  class << Input
    alias update_Mouse_Window update
  end
  
  def self.update
    $mouse_window_controller.update
    update_Mouse_Window
  end
  
end

edit a suggestion icon buttons

scripters can do that at their own discretion
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Mouse Window API
« Reply #5 on: August 21, 2010, 09:33:08 PM »
* sniff*  :'( y-you d-don't like it? *sniff*
yay moved!  :P

« Last Edit: August 21, 2010, 09:46:47 PM by Ryexander »
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Mouse Window API
« Reply #6 on: August 21, 2010, 09:59:20 PM »
*fixes the compatibility listing and some grammar*
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline SBR*

  • Chaos User
  • ******
  • Posts: 1195
  • LV: -7
  • Gender: Male
    • View Profile
Re: [XP] Mouse Window API
« Reply #7 on: August 23, 2010, 05:38:59 PM »
Great! Level up!

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Mouse Window API
« Reply #8 on: August 27, 2010, 06:50:49 AM »
1.5 is out
new features and lots of functionality has been added to the existing ones
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

ojp2010

  • Guest
Re: [XP] Mouse Window API
« Reply #9 on: August 29, 2010, 03:52:50 AM »
Could you turn this in a CMS per say? Like create a box that calls a players items and lists them or calls a players buddy list and list them. Would being using this for RMX-OS

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Mouse Window API
« Reply #10 on: August 29, 2010, 03:57:09 AM »
It could be used to create any sort of user interface, but will I? no.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

ojp2010

  • Guest
Re: [XP] Mouse Window API
« Reply #11 on: August 29, 2010, 04:09:38 AM »
Alright well the direct key call isn't that big of a deal. I can live without that, but is there any way you could help me with editing this for my use? I would like to use it for a RMX-OS game I am working on. I am gathering the core system stuff right now and this script would make a great improvement to that database.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Mouse Window API
« Reply #12 on: August 29, 2010, 05:13:30 AM »
there is no editing involved. it is a scripting TOOL. it dose nothing on its own. now if you want to use it to create a system, go right ahead, post here if you have question as to how certain things work. but don't expect me to explain everything. the classes are well commented for a reason. so that some one reading the script could figure it out on their own.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

ojp2010

  • Guest
Re: [XP] Mouse Window API
« Reply #13 on: August 29, 2010, 06:14:06 AM »
Alright, well thank you for the info. I am going to looking to it.

Offline Wizered67

  • Astral Trancist
  • *****
  • Posts: 512
  • LV: 16
    • View Profile
Re: [XP] Mouse Window API
« Reply #14 on: October 05, 2010, 02:40:50 AM »
In the demo provided, in the item list it shows all the items in the database. How would I change it so that it only shows the items you have?

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Mouse Window API
« Reply #15 on: October 05, 2010, 03:22:23 AM »
wow, really? you couldn't just look at how the item menu dose it?
btw if you want to make an inventory be aware that the prospect is a semi difficult one
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Wizered67

  • Astral Trancist
  • *****
  • Posts: 512
  • LV: 16
    • View Profile
Re: [XP] Mouse Window API
« Reply #16 on: October 05, 2010, 04:57:31 AM »
I did look at how the item menu did it, but I wasn't able to get it to work.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Mouse Window API
« Reply #17 on: October 05, 2010, 06:20:20 AM »
well the way the item menu dose it you get an array of RPG::Item/Weapon/Armor instances. then iterate through that array and create a data array that is formated properly for the iconbox_list control
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Wizered67

  • Astral Trancist
  • *****
  • Posts: 512
  • LV: 16
    • View Profile
Re: [XP] Mouse Window API
« Reply #18 on: October 06, 2010, 01:48:08 AM »
Thanks! I finnaly got it to work!  :bow:

edit: One more quick question. What does the right click window do? I saw it while looking at the test window 2, but whenever I right click on the check box it gives a "failed to create bitmap" error.
« Last Edit: October 06, 2010, 03:04:45 AM by Wizered67 »

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Mouse Window API
« Reply #19 on: October 06, 2010, 07:44:57 AM »
version 2.0 is out. fixes close to 20 small errors caused by stupidity and finishes hover functionality.

read the fist post.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)