Chat Mouse Click Activation
Authors: Wizered67, Aegisrox
Version: 1.0
Type: Mouse Script
Key Term: RMX-OS Plugin
IntroductionThis scripts allow to activate the chat when you click on the chat line input, such as alternative to press the key F6.
Features
- Press inside the chat box input line to activate the chat
- Press outside of the chat box to desactivate
ScreenshotsNo Screenshots. Only click on the text input of the chat of RMX! What can I say?
DemoNo Demo
ScriptRequires Mouse Controller of Blizzard in order to work.
class Scene_Map
CHATBOX_X = 0
CHATBOX_Y = RMXOS::Data::SCREEN_HEIGHT - (RMXOS::Options::CHATBOX_LINES * RMXOS::Data::ChatFontHeight) - RMXOS::Data::ChatFontHeight
CHATBOX_WIDTH = RMXOS::Options::CHATBOX_WIDTH
CHATBOX_HEIGHT = (RMXOS::Options::CHATBOX_LINES * RMXOS::Data::ChatFontHeight)
alias update_chatbox update
def update
if Input.trigger?(Input::Key['Mouse Left'])
if $mouse.x >= CHATBOX_X && $mouse.x <= CHATBOX_X + CHATBOX_WIDTH && $mouse.y >= CHATBOX_Y && $mouse.y <= CHATBOX_Y + CHATBOX_HEIGHT
$game_temp.chat_active = true
else
$game_temp.chat_active = false
end
end
update_chatbox
end
end
InstructionsJust create a new script a put below de Blizzard Mouse controller
CompatibilityI don't know of any scripts this wouldn't be compatible with. But i tried with others mouse scripts and works great.
Credits and Thanks
- Wizered67 for doing
- Aegisrox for setting constants
Author's NotesEnjoy it ;).
Nice work. :)
If you could fix the "Key Term" to one of the terms specified here (http://forum.chaos-project.com/index.php/topic,17.0.html), we can move it to the database.
Thanks! ForeverZer0
I Just changed the key term! ;)
Regards
Aegis
nice script man ^^ It's pretty neat but, there's a small problem. When the chat window is invisible, if you click where it should be it will activate the box without making it visible, and your buttons wont work. You can simply click anywhere the box isnt to make it inactive but, I changed your script a little so the chat doesnt activate when chatbox is hidden.
class Scene_Map
CHATBOX_X = 0
CHATBOX_Y = RMXOS::Data::SCREEN_HEIGHT - (RMXOS::Options::CHATBOX_LINES * RMXOS::Data::ChatFontHeight) - RMXOS::Data::ChatFontHeight
CHATBOX_WIDTH = RMXOS::Options::CHATBOX_WIDTH
CHATBOX_HEIGHT = (RMXOS::Options::CHATBOX_LINES * RMXOS::Data::ChatFontHeight)
alias update_chatbox update
def update
if Input.trigger?(Input::Key['Mouse Left'])
if !$game_temp.chat_visible
elsif $mouse.x >= CHATBOX_X && $mouse.x <= CHATBOX_X + CHATBOX_WIDTH && $mouse.y >= CHATBOX_Y && $mouse.y <= CHATBOX_Y + CHATBOX_HEIGHT
$game_temp.chat_active = true
else
$game_temp.chat_active = false
end
end
update_chatbox
end
end
Thanks Chaucer. I messaged Aegisrox about that, but he never wrote me back.