Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Advanced MessageBox from the OS
#1
Advanced MessageBox from the OS
Maumau
Nov 25, 2008

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


This is my first script being posted and i am a little nervous.
It's very simple to show the messageboxes in a comum program, and now will be simple in your game too!

All you need is:
- Put the script above main, as always
- in a call script or in a script use:
- - win = Message.new
- - click = win.MessageBox(title, message, buttons_type, icon)
(look at the end of the script for more details about the returning values)

the variables will be:
title: the title of this little window, like firefox for the browser(string);
message: your message, like Do you want to rewrite this?(string);
buttons_type: the buttons OK CANCEL IGNORE YES NO as the first part of the script explains his number(integer);
EDIT: This version has no more game_variable being used, was useless and now i see it

the buttons_type will be by default YES/NO (#4), so if you want to change the buttons now you now how!
if you just want to make an alert you can use print method or this new method, use the icon = 16 for more explosive reaction of the user!

if you don't want a title and/or a message use an empty string ''

message script


I know this can be better, any ideas?
If you found one error or want this translate(PORTUGUÊS for example) i can translate for you.

use for example:

txt = Message.new
click = txt.MessageBox('my window','OOOOOOOOO',4,48)
exit if click == 6

NEWS OF VERSION 1.01
--> You can still using this in events by call script and if(script) == Integer, nothing to strange for people who use rmxp to make their own games, if you don't understand what i am talking about just ask for a demo!
NEWS OF VERSION 1.02
--> One more constant was discovered

Hugs from Brazil and sorry for any error in my english @_@
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Advanced Text Effects Script (ATE) Samo the thief 0 2,263 03-08-2007, 01:00 PM
Last Post: Samo the thief



Users browsing this thread: