Commit Graph

3 Commits

Author SHA1 Message Date
Claude
2b62ce56ce Fix chat issues: lobby visibility, event errors, message display, and text alignment
- Remove event.preventDefault() calls as these events are not cancellable in GTA Connected
- Add in-game detection using localPlayer to hide chat when in lobby
- Change network event parameters from objects to individual args for compatibility
- Fix text alignment with consistent font sizes and proper vertical centering
- Rename to "Revolution chat" per user preference
2026-01-26 10:04:19 +00:00
Claude
7943aba360 Fix chat UI position, font initialization, and input handling
- Move chat Y position from 200 to 50 to display correctly at top-left
- Fix font initialization to use lucasFont.createDefaultFont() instead of raw lucasFont
- Add fallback font (Tahoma) if Arial fails to load
- Use bindKey for T key binding for more reliable chat toggle
- Define key code constants with fallbacks for SDLK_* values
- Filter control characters from text input
- Add test message on resource load to verify chat is working
- Improve native chat disabling with proper function checks
2026-01-25 18:39:16 +00:00
Claude
5ab25c0c98 Add custom chat UI with modern glossy design and welcome/leave messages
- Create client.js with glassmorphism-style chat UI matching mod menu theme
- Add animated player join/leave notifications (slide-in from right)
- Implement custom chat rendering with timestamps, scrolling, and message types
- Support for multiple chat types: normal, action, whisper, shout, OOC, local, system
- Add smooth fade animation when chat is idle
- Update server.js with network events for custom UI communication
- Add OnPlayerJoined/OnPlayerQuit handlers for welcome/leave broadcasts
2026-01-25 18:17:14 +00:00