Umm yeah, I have not yet used this, but I put all these scripts into my project and for some reason my edited Window_Equip_Right window won't allow me to move between options of the equipment types, yet it works fine in my Item window. It wasn't my edits that had a problem on it, because it was working perfectly fine until I put this script into it.
GUI -> My Widgets Classes
Script ArchiveIf I may suggest, you could add the ccoa's UMS effect in the dialog boxes, like those comic text boxes that would pop up after you type the text...
hum... for the mouse, I don't think my script is concerned, but the input module :p which handles it.
Iced -> Is it the default Window_Equip_Right script? Cause it works fine in mine, with arrows or the mouse.
Well I think tonight, I'll correct some stuff :p, adding rataime's suggestions about some customizations.
Iced -> Is it the default Window_Equip_Right script? Cause it works fine in mine, with arrows or the mouse.
Well I think tonight, I'll correct some stuff :p, adding rataime's suggestions about some customizations.
Yeah basically, I just made the window sizes smaller for the entire Equipment Scene. I'm not sure why it'd be like this though.
I'm currently improving the windows management for drag/resize/close, and it goes with selectable windows.
So maybe my changes will fix your problem.
Now:
You got 3 Rect objects(instead of an array of 4 values), defined with an accessor to them, for the different clickable areas(close, resize and drag areas)
But you still need to define them in 2 different place in the code.(when they're defined and when they're updated if the window is different(dragged, scaled, or moved/resized with other methods.)
I've a bit improved some code parts...nothing much...
When dragging is finished, the original opacity is restaured instead of getting the full 255-opacity value. And the opacity now always becomes 3/4 of the original opacity when dragging.
So maybe my changes will fix your problem.
Now:
You got 3 Rect objects(instead of an array of 4 values), defined with an accessor to them, for the different clickable areas(close, resize and drag areas)
But you still need to define them in 2 different place in the code.(when they're defined and when they're updated if the window is different(dragged, scaled, or moved/resized with other methods.)
I've a bit improved some code parts...nothing much...
When dragging is finished, the original opacity is restaured instead of getting the full 255-opacity value. And the opacity now always becomes 3/4 of the original opacity when dragging.
Well, I found out my problem, I added the new SDK 2.2 and I had 1.5 before that and it changed the way Scene_Equip worked, I still had the Graphic.Transition stuff, and the window disposing for Scene_Equip in the main_window method, and I guess it's already done automatically from the SDK now which is cool.
Well, stupid question... Will it have to be scripted alongside SQL to make it work?
Make what work? These scripts? No they don't need it to work. I've already messed around with some of the features a bit, and I kept getting errors with the Mouse position, only when the mouse pointer would go outside the window, it would give me errors about it. It's not an error that has to do with this, it's one for Alework's Input Module.
Oh and Trebor, how could I put an icon on Scene_Map and use it to like open up a window, or scene like Scene_Menu. Because it's opacity is set to 0 automatically, and when I place it on a window I'm getting errors with the Area method in the Icon class.
Oh and Trebor, how could I put an icon on Scene_Map and use it to like open up a window, or scene like Scene_Menu. Because it's opacity is set to 0 automatically, and when I place it on a window I'm getting errors with the Area method in the Icon class.
hum... where did you defined the icon ? in the window class where you place it or in Scene_Map?
But to execute something with the icon ( when it's visible) you just add a block definition, when creating the icon
like this: .... Icon.new(args){ will do something }
The opacity of what are you talking about? the window or the icon? cause I don't see the use of having a transparent window containing icons... as icons don't need always need a window.
And you can't click on invisible icons.
The errors might come from the "win.viewport.rect" because the window's viewport might be nil. (so it doesn't find the rect method for nil::NilClass) I should add a check on it...
Can you send me your code in a pm, just to check :p ?
But to execute something with the icon ( when it's visible) you just add a block definition, when creating the icon
like this: .... Icon.new(args){ will do something }
The opacity of what are you talking about? the window or the icon? cause I don't see the use of having a transparent window containing icons... as icons don't need always need a window.
And you can't click on invisible icons.
The errors might come from the "win.viewport.rect" because the window's viewport might be nil. (so it doesn't find the rect method for nil::NilClass) I should add a check on it...
Can you send me your code in a pm, just to check :p ?
Well, I've declared the icon in the window, and that gave me the Area error, and I declared it in Scene_Map without a window, and with a window, with a window gave me the Area error, without the window, it was invisible. Also, when it was invisible in the Scene_Map without the window, I was able to click it, and get the effects from the block.
Edit: Alright, I got it to work, but it opens upon a single left click. Shouldn't it execute only on a double click?
Edit: Alright, I got it to work, but it opens upon a single left click. Shouldn't it execute only on a double click?
o_O it should on double... ( or by pressing C, if selected with one click ), and the double click could happen in a 10-frames period.
You got pretty weird things...
I wonder if you're the only one....?
Well
normally, you can't select it, and make it active, if it's invisible... ( with the first click ) so then you can't double click it if it's invisible.
You got pretty weird things...
I wonder if you're the only one....?
Well
normally, you can't select it, and make it active, if it's invisible... ( with the first click ) so then you can't double click it if it's invisible.
Well the single click thing only happened on one Icon that I've made, it worked fine before with different icons.
EDIT: Nope, it does that now for all of them.
EDIT: Nope, it does that now for all of them.
How do i open a .rsc?? Plz tell me.
PvtJelle, you need a little script to use RSC files within your game. That script is available here
[QUOTE=trebor777;212451]Widget
It requires 2 set of scripts in order to work properly:
the SDK 2.2
Aleworks Input Module 2.20
[/QUOTE]
There's an Aleworks Input Module 2.20?
I can only find 2.00 in vgvgf's
Could that be why I'm getting the error:
Aleworks Input Module(AIM) 943
undefined method '[]' for nil:NilClass
It requires 2 set of scripts in order to work properly:
the SDK 2.2
Aleworks Input Module 2.20
[/QUOTE]
There's an Aleworks Input Module 2.20?
I can only find 2.00 in vgvgf's
Could that be why I'm getting the error:
Aleworks Input Module(AIM) 943
undefined method '[]' for nil:NilClass
#---------------------------------------------------------------------------
# * Mouse X Coordinate
#---------------------------------------------------------------------------
def Input.mouse_x?
@mouse_pos[0]
end
# * Mouse X Coordinate
#---------------------------------------------------------------------------
def Input.mouse_x?
@mouse_pos[0]
end
Expand to see the code.
arf no,
It's because i was confused with the sdk version... and i didn't change my 1st post.
hum... and please all errors from the input module don't concern me... I'm sorry if it doesn't work for you with it... works fine with me.
It's because i was confused with the sdk version... and i didn't change my 1st post.
hum... and please all errors from the input module don't concern me... I'm sorry if it doesn't work for you with it... works fine with me.
My Problem
Spoiler
"Drag and Drop" Works if i do this:
and in update
but not when i make my own window
What am i doing wrong?
@Window = Window_Base.new(...)
Expand to see the code.
and in update
but not when i make my own window
class Window1 < Window_Base
def initialize
super(...)
@dragable = true
@scalable = true
...
end
def update
...
end
end
def initialize
super(...)
@dragable = true
@scalable = true
...
end
def update
...
end
end
Expand to see the code.
What am i doing wrong?
Nevermind got it working... :D
This will be great for my MMO style gamei'm working on.
I'll soon release a minor update of the scripts^^ correcting some bugs, and improving some code.
Whenever i use a Text_box i get an Error:
Quote:
Script 'Scene_Test' line 32: NoMethodError occurred.
undefined method `font' for NilClass
undefined method `font' for NilClass
Updated:
- rsc file
- scripts spoilers
- Demo added( for icon, text box, and buttons. )
- rsc file
- scripts spoilers
- Demo added( for icon, text box, and buttons. )
[QUOTE=S S Muu;233302]Whenever i use a Text_box i get an Error:
Thanks for the Demo! :D
I can now see what i did wrong
Quote:
Script 'Scene_Test' line 32: NoMethodError occurred.
undefined method `font' for NilClass
[/QUOTE]undefined method `font' for NilClass
Thanks for the Demo! :D
I can now see what i did wrong
I've decided to remove my code spoiler, and replace them by link to txt files^^, save some place in the DB, and quicker in case of edition. ^^
[QUOTE=Mr.Mo;213087]Trebor, you should release the Dialog Box(Window_Dialog and Show_Dialog), which are one of my favorite classes because it is SO simple, yet SO useful. Perhaps the Listbox and DropDown Menu as well. They are all documented. You need the DropDown Menu to use the Menu buttons anyways.
[/QUOTE]
[QUOTE=trebor777;213307]I didn't released them cause it require the CG::Window librairy from Selwyn.
(as you use the margin feature.)[/QUOTE]
why dont you make 2 versions:
1. The normal one (thats the one you already released)
2. whit "Dialog Box(Window_Dialog and Show_Dialog)" and CG::Window
ohh and one more thing!
what dose this "CG::Window" do?
[/QUOTE]
[QUOTE=trebor777;213307]I didn't released them cause it require the CG::Window librairy from Selwyn.
(as you use the margin feature.)[/QUOTE]
why dont you make 2 versions:
1. The normal one (thats the one you already released)
2. whit "Dialog Box(Window_Dialog and Show_Dialog)" and CG::Window
ohh and one more thing!
what dose this "CG::Window" do?
well the CG::Window^^ is just a "rewritten" window class.
and it allow users to change the window's margin, which is sometimes quite usefull.
and it allow users to change the window's margin, which is sometimes quite usefull.
This is Scripts Work with Netplay 1.7?
OMG ITS PERFECT !!!!
dude...
The only word to describe this would be...
Epic.
The only word to describe this would be...
Epic.
Hi, here is a little video from the demo, explaining stuff^^.
In english people, sorry for my accent and the little mistakes.
http://rmxp.trebor777.net/rmxp/widget_demo.avi
French
http://rmxp.trebor777.net/rmxp/widget_demo_fr.avi
In english people, sorry for my accent and the little mistakes.
http://rmxp.trebor777.net/rmxp/widget_demo.avi
French
http://rmxp.trebor777.net/rmxp/widget_demo_fr.avi
Original thread: https://www.hbgames.org/forums/viewtopic.php?t=21182