Commit Graph

1111 Commits

Author SHA1 Message Date
BeniS 469df27d9b Implement #261 2013-02-01 14:21:20 +13:00
BeniS e7012031eb Fix auto walking bug 2013-02-01 12:46:44 +13:00
Henrique Santiago 4c3c945bab Fix tooltip, minimap 2013-01-31 19:43:42 -02:00
Henrique Santiago e370ffdb0f More changes to minimap 2013-01-31 18:34:27 -02:00
Eduardo Bart 36a60419ec Fix some issues when reloading entergame 2013-01-31 14:19:41 -02:00
Henrique Santiago 546007f1df UIImageView, fixes to minimap 2013-01-31 14:20:04 -02:00
BeniS 859cb31f5d Fix #257 2013-02-01 01:30:36 +13:00
BeniS de353e3b72 Should resolve #256 (please test, works for me) 2013-02-01 00:07:28 +13:00
BeniS 9e208fa792 Fix 255 also another cooldown bug:
* If you use the cooldown during the ping delay time it wouldn't init
  the cooldown again.
2013-01-31 20:31:21 +13:00
Eduardo Bart 89c012e81f Improvements in minimap drawing 2013-01-31 03:38:06 -02:00
Eduardo Bart abcc95634e Redirect violations msgs to default channel 2013-01-31 01:11:36 -02:00
Henrique Santiago 8a2d2cd5ac Fixes to minimap 2013-01-31 01:09:56 -02:00
Henrique Santiago 17d09f41be Rework UIMinimap 2013-01-30 23:44:57 -02:00
Henrique Santiago ca9c33ff54 Fix getColor, add/get position 2013-01-30 19:08:53 -02:00
Eduardo Bart da050a5630 Fix trade/use bug from previous commit 2013-01-30 18:57:37 -02:00
Eduardo Bart 5bf03c50d6 Rework hotkeys manager, fix many issues on it 2013-01-30 18:28:54 -02:00
BeniS 377c013dfe Cooldown particles! lol
* Changed some ui details in cooldown module.
2013-01-30 12:00:13 +13:00
Henrique Santiago 60986eb80f Minimap fix and remove option 2013-01-29 18:36:27 -02:00
Eduardo Bart 8d6ccb8d83 Fixes to compile with clang 2013-01-29 14:35:20 -02:00
Eduardo Bart 4751941e4f Improve encrypt/decrypt algorithms 2013-01-29 11:51:15 -02:00
BeniS f492d291eb More fixes to spell cooldown module:
* Fixed duration issues.
* Fixed referencing after destroyed issue.
* Using callbacks for progress rect now.
2013-01-30 02:01:52 +13:00
BeniS ec30567d6b Some fixes to spells/cooldowns.
* Fixed 'progress' bug for spells in the cooldown module.
* Fixed a bug with GameForceFirstAutoWalkStep feature.
* Moved the spells ID to its SpellInfo row.
* Lower cased table functions (consistant).
2013-01-29 19:26:32 +13:00
Eduardo Bart b7eef97239 Add flexibility in login packets
* It's now possible to add custom data in the login packet
* Add utility funciton to generate RSA keys
* Make the protocol able to use RSA keys with 2048 bits or more
2013-01-28 20:52:03 -02:00
Eduardo Bart 6c7a163197 Add missing file 2013-01-28 19:20:01 -02:00
Eduardo Bart d6e8e92a45 Some fixes in hotkeys and other improvements
* Save last logged character and world instead of character name
* Make focused label always visible in character list and hotkeys
* Other fixes in hotkeys
2013-01-28 16:33:35 -02:00
BeniS 197a379933 Some minor things.
Just got back today, awesome progress ed :)
2013-01-29 00:02:44 +13:00
Eduardo Bart 773837da98 Minor changes in file type handling 2013-01-27 23:23:53 -02:00
Eduardo Bart 4536c68f00 Fix #249 2013-01-27 18:26:48 -02:00
Henrique Santiago 2bd86d0695 Fix minimap zoom, blue name 2013-01-27 14:53:16 -02:00
Eduardo Bart e81dd31ae3 New lightweight minimap format, finish #15 2013-01-27 14:06:47 -02:00
Henrique Santiago cf0ecf418d Pt translations, small fix in console tabbar 2013-01-27 09:22:48 -02:00
Eduardo Bart 9aca1644e6 Implement rule violations, closes #218 2013-01-27 07:54:50 -02:00
Eduardo Bart 6c59124cb2 Reimplement smartwalk without events 2013-01-26 21:18:07 -02:00
Eduardo Bart 7c06a00f82 Improve logout speed via Ctrl+G 2013-01-26 20:52:37 -02:00
Eduardo Bart 9f69c71b6d Minimap navigation with Alt hotkeys 2013-01-26 20:20:26 -02:00
Eduardo Bart 4351f3c63f More improvements in walk 2013-01-26 20:12:00 -02:00
Eduardo Bart 4b1db2bcd6 Fix #235 and other changes 2013-01-26 18:40:03 -02:00
Eduardo Bart 2fd3c643c4 Rework smart walk, fix #247 2013-01-26 18:10:30 -02:00
Eduardo Bart 4f8f02acad Rework auto focus behavior, closes #222 2013-01-26 17:06:25 -02:00
Eduardo Bart 7e01306fc6 Improvements to popupmenus, fix #245 and #246 2013-01-26 16:05:34 -02:00
Eduardo Bart 4d0d62e364 Fix #244 2013-01-26 14:39:11 -02:00
Eduardo Bart 07959ddc04 Fix a vulnerability in password encryption
* There was an error in the encryption used to save passwords,
  now it's really harder to decrypt the password from the config file
* Other minor changes
2013-01-26 14:38:48 -02:00
Eduardo Bart 18af9a45ee Fix #166 2013-01-25 18:51:14 -02:00
Eduardo Bart 90f1244ab4 Fix #194 2013-01-25 18:28:44 -02:00
Eduardo Bart 9e4a9433ca Fix #243 2013-01-25 17:30:40 -02:00
Eduardo Bart 32c5f4285b Closes #210
* And minor adjustments
2013-01-25 17:26:51 -02:00
Henrique Santiago c982ca81a5 Rework options visual 2013-01-25 13:33:51 -02:00
Eduardo Bart a144174c41 Use push/pop mechanism for cursors 2013-01-25 11:47:51 -02:00
Eduardo Bart 3a47c4f2e1 Remake cursors, closes #219 and #237 2013-01-25 11:19:40 -02:00
Eduardo Bart 0a91fff82a Textedit improvements 2013-01-25 11:17:59 -02:00
Henrique Santiago 95f79b45dc Configure default hotkey, fix map release 2013-01-25 10:22:51 -02:00
Henrique Santiago 839495fa9b Another sort function for hotkeys 2013-01-25 09:36:57 -02:00
Henrique Santiago 42b05df717 Hotkeys order, minimap mark windw changes 2013-01-24 20:57:51 -02:00
Eduardo Bart d5b4e0929f Improvements in textedit and hotkey manager
* Set textedit's cursor position to the end of text in some situations
* Send hotkey messages to the current channel instead of default channel
* Allow to overwrite sprites using otml and pngs
2013-01-24 18:36:04 -02:00
Eduardo Bart a8fbd6cdfc Improve game map view modes 2013-01-24 17:15:07 -02:00
Eduardo Bart 5b65088426 Improve tab navigation and scrolling
* Fix with use with over creatures when you are over force use objects
* Fix textedit wrapping
2013-01-24 15:46:02 -02:00
Henrique Santiago bc55cbbbd1 Pt translations, some helper functions 2013-01-24 14:01:28 -02:00
Henrique Santiago c3eede9872 Changes to translations 2013-01-24 11:33:53 +00:00
Eduardo Bart 311bc220a8 Fix a warning 2013-01-23 16:55:10 -02:00
Eduardo Bart 992acd8873 Fix translations, there were all broken 2013-01-23 15:35:43 -02:00
BeniS c7ff744dcd Fix to spin box button fit and npc trade:
* Fit spin box buttons properly
* NPC trade you can now look at items you can sell/buy
(Waiting for ed to implement a way to set item image color before its completed)
2013-01-23 22:23:28 +13:00
BeniS a2ddb472f5 Fixed up movement controls again and fixed a typo.
* You can change direction while already moving
(There could be a better way for walking control, but this works fine for now)
2013-01-23 20:31:28 +13:00
BeniS caf86a9fc6 Fixes! Closes #235 and more:
* Hotkeys now save by server & player rather than just player
* Added double clicking to module dialog options
* Fixed a bug in the modal dialog for > pv970 (protocol changed)
* Fixed a login bug for pv970.
WARNING: Will remove all your current hotkeys.
2013-01-23 13:15:46 +13:00
Eduardo Bart 27d5506262 Some fixes in entergame and widget clipping 2013-01-22 19:48:25 -02:00
Eduardo Bart ca4caf7991 Fix text highlighting again 2013-01-22 18:29:18 -02:00
Eduardo Bart dabc7548fe Fix keyword highlighting in chat 2013-01-22 18:06:48 -02:00
BeniS 01e48fbcc8 More work towards autowalking (needs more work).
* Added tile minimap color override.
* Changed zoom in and out of minimap from inverted control.
2013-01-23 01:02:25 +13:00
BeniS 5a278ef4ec Few minor fixes.
* Fixed count window.
* Other small things.
2013-01-22 13:40:46 +13:00
Eduardo Bart befe480ec3 Fixes #232 2013-01-21 20:04:52 -02:00
Eduardo Bart 71cccac3da Many changes
* IMPORTANT: dat/spr should now be placed in /data/things/
* Rename game_tibiafiles to game_things
* Make battle list algorithm much faster
* Split UITabBar into UITabBar and UIMoveableTabBar
* Fix other minor issues
2013-01-21 19:41:03 -02:00
Eduardo Bart 0729e35b50 Minor fixes 2013-01-21 14:15:36 -02:00
Eduardo Bart ae731ddefc Rework minimap rendering 2013-01-20 21:17:56 -02:00
BeniS 8c6d5a0f5c Finalizing auto walk enhancements, closes #63, also other fixes:
* Can now auto walk up to 1000 steps!
* Re-added sexy topmenu buttons :)
* Tooltip for logout/edit will now change
* Changed xxStackpos to xxStackPos
2013-01-21 05:09:14 +13:00
Eduardo Bart c28596292f Text selection in chat
* Remove fancy stuff from background
* Improve text windows
* More improvements to textedit
2013-01-20 13:40:40 -02:00
Eduardo Bart 9907e9e5c7 Fix particles and some fun in the background LOL 2013-01-19 18:24:59 -02:00
Samuel e8d0996817 Ignoremodule lowercase | German locale file 2013-01-19 19:02:22 +01:00
Henrique Santiago 8e9d137608 Rotate, translate and scale added to ogl2 2013-01-19 02:18:29 +00:00
Eduardo Bart 36e95b2f48 Fix minor mistake in client topmenu 2013-01-18 22:24:40 -02:00
Eduardo Bart 4f6c987d77 Fix regression in market 2013-01-18 21:29:10 -02:00
Eduardo Bart 28b5fc1d5a Refactor modules, closes #223
* All modules are sandboxed now
* All images,sounds,fonts,translations and styles were moved to "data" folder
* Reorganize image files folders
* Remove unmaintained modules: client_particles, client_shaders
* Implement new automatic way to load styles and fonts
* Add hide/show offline option in VipList
* Add invite/exclude to/from private channel in players menus
* Many other minor changes
2013-01-18 20:46:36 -02:00
Eduardo Bart 20d9176d10 Fixes #172 2013-01-18 16:49:41 -02:00
Samuel 806f543302 Premium time colored red <= 7 days #205 2013-01-18 16:48:48 +01:00
Henrique Santiago ddaff8a46a Remove exit module, logout no longer at miniwindow side, always visible 2013-01-18 05:53:41 +00:00
BeniS 1500c1d2f2 Few minor fixes here and there:
* Fixed miniwindow cancelling (sorry Summ! :D)
* Fixed pathFind to check floor change tiles
* Fixed buying/selling stackable items in pv < 860
* Added force walk to the first step of auto walking for open tibia
2013-01-18 18:27:29 +13:00
Henrique Santiago 6ad7269e5a Fix skull blink 2013-01-17 18:57:03 +00:00
Eduardo Bart 7e52c4e449 Make otclient login into cipsoft servers again 2013-01-17 18:24:41 -02:00
Eduardo Bart ada2c9efe9 Fix buy/sell of stackable items on 8.6 2013-01-17 16:10:55 -02:00
BeniS b68df8336a Minor fixes to some previous commits.
* Fixed a bug with storing the protocol version.
* Fixed an issue with text windows cancelling.
* Fixed a typo in the source.
2013-01-18 03:23:01 +13:00
Eduardo Bart cf77c2baf3 Fix text edits wrapping 2013-01-17 09:34:45 -02:00
BeniS 74ebd7f903 Finalizing #198
* Also changed the 'use with crosshair' hotkey color.
2013-01-18 00:12:17 +13:00
Eduardo Bart 95593964bb Fix audio enable/disable checkbox 2013-01-17 08:50:40 -02:00
Eduardo Bart 8b14a91ed9 Fix save of MiniWindow positions, issue #163 2013-01-16 17:57:05 -02:00
Eduardo Bart 62cd3d04e1 Update sound engine with some sound fixes
* Refactor client module
2013-01-16 16:46:42 -02:00
Eduardo Bart 52ede065fc Make text windows stackable, fix #152 2013-01-16 16:27:02 -02:00
Eduardo Bart a80e758e32 Improve tabs move in console chat, looks nice now 2013-01-16 15:41:12 -02:00
Eduardo Bart 2e75380218 Reimplement text edit scrolling in C++
* And update some corelib APIs
2013-01-16 14:20:17 -02:00
Jeffrey 47d5e1d5e6 Fix for battle list sorting
All creatures were being removed and re-added, only add ones we don't
have, and then remove ones we shouldn't have.
2013-01-13 20:02:00 -06:00
BeniS 913cc801b6 Few minor fixes:
* Fix to tab margins when a tab is closed
* Changed the life bar colors of UICreatureButtons
* Added onDeath to Creatures class
2013-01-13 00:41:27 +13:00
BeniS 1b6be92cad Minor fix to previous commit and added mouse scroll option to UIScrollBar class. 2013-01-11 20:10:37 +13:00
BeniS 914b4bd5f3 Applied #189
* There was a bug in OTML saving hotkeys per player because of the way they are storing children and not a straight value. Perhaps you want to look at it ed.
Note: Your hotkeys will reset in this revision.
2013-01-11 17:03:48 +13:00
Henrique Santiago adba4b0da9 Refix items on UIItem, cancel button to hotkeys 2013-01-10 16:45:35 -02:00
BeniS 00a574fe10 Fixed #178, and some others:
* Fixed a small issue in the ignore module (also please remember to use 2 spaces for tabulation and not tabs)
* Changed the order of count window buttons
* Added new player functions.
2013-01-11 06:25:32 +13:00
Jeffrey c43a97395a Fixed a Typo
Function name was misspelled
2013-01-09 21:46:30 -06:00
Jeffrey c6ab6bc484 Ignore/Unignore options in right click menus
Added both Ignore and Unignore options in the right click menu for the
Game Window (which also added it for the Battle list), and in the right
click menu for the console (chat window).
2013-01-09 21:20:26 -06:00
Jeffrey 8de7873635 Fix spacing in NPC Trade Windows
Adjusted Text offset of the NPCItemBox for the NPC Trade Window so that
the text is no longer partially hidden behind the item.
2013-01-09 20:40:16 -06:00
Jeffrey b72c1d2921 Fix whitespace
Forgot to replace tabs with spaces
2013-01-09 20:35:05 -06:00
Jeffrey 74d3214f74 Fix Ignore Module warning
Ignore list label was destroyed when removed, giving a warning when
closing the Ignore Window.
2013-01-09 20:33:05 -06:00
Samuel 59594b4ac2 Fix Ignore Module / NPC highlighting
Edu removed the spacer character.
Don't know if it was intentional or not, I will just add it here again.
2013-01-09 23:54:57 +01:00
Samuel 1784bd9f26 Ignore Window in Console / Fixes
Ignore List:
- Ignore Private Messages
- Ignore Yelling
- Ignore added Players fully

Fixes:
- Fixed cutoff text in spelllist module
- You cannot open a private chat channel with yourself now
2013-01-09 23:03:04 +01:00
Eduardo Bart cce2976156 Many enhancements in client API
* Fix issues in item use
* Stack animated texts values
* Add utility functions for changing creature color and jumping
* Add some new extended functionality
* Improve map shader API
2013-01-09 17:29:58 -02:00
Eduardo Bart aeb31f0669 Fix boost locale linkage 2013-01-09 14:57:34 -02:00
Jeffrey 607a6a13bc Fix Sell tab of NPC Trade
If an item had both a sell and buy price, it was only being added to the
buy list.
2013-01-08 23:26:56 -06:00
BeniS 8d07f8eaf6 New sexy 'move stackable item' window! 2013-01-09 06:59:03 +13:00
BeniS a1a8d28f5c Auto walker update must be done from C++ not lua due to bot protection.
* Moved the auto walk checker to the source.
* Implemented a temporary fix for findPath method (will now choose other tiles over null tiles).
2013-01-09 04:32:37 +13:00
Jeffrey 52f0b21ea6 Fixed error in the NPC Trade system error message
item[1] was user data, so the error message now prints out the item
name.
2013-01-08 00:30:33 -06:00
Jeffrey a1f5a88fe7 Minor Edits to UIMiniWindow
Allow for a double click on the Top Bar of a UIMiniWindow to function
the same as pessing the minimize/maximize button.
2013-01-07 23:09:00 -06:00
Jeffrey 9610106088 Merge remote-tracking branch 'upstream/master'
Conflicts:
	modules/game_viplist/viplist.lua
2013-01-07 21:23:14 -06:00
BeniS 702fce0be8 Fixed #169 Thanks Quintinon and #170! Also some other fixes:
* Fixed calling local in an if statement where it is not required (lol).
* Fixed an issue with the auto walk checker.
2013-01-08 15:55:41 +13:00
Jeffrey 5921c8e420 Fixed Exit button not being created
It will now show/hide appropriately instead of not being created and
thus throwing errors.
2013-01-07 20:22:32 -06:00
Jeffrey 4c0c6e635e Fix Vip List sorting
Fixes Vip list sorting issues for both alphabetical sorting and
online/offline sorting. Fixes Issue #169
Tested in 8.61
2013-01-07 19:38:23 -06:00
BeniS bb139955dc More fixes and edits!
* Fixed a bug with client_exit module button appearing on full reload.
* Fixed the battle window to work properly now (left click: attack, right click: menu).
* Added auto walk checker for more accurate aut walking:
  - It will always find the path now, except in rare occasions gets stuck running back and forward
  - Re-calculates path every 10 steps and also when you hit an object that cancels your step.
  - Right now this is just a temporary method.
  - Cancels the checker when you move or press escape (has to be done client-side).
* Added a new setting to UIComboBox class 'mouse-scroll' to enable/disable mouse wheel scrolling.
* Added support for no ping in cooldowns.
* Added missing PlayerStates (hungry and bleeding).
2013-01-08 06:17:01 +13:00
BeniS fddbafebd3 Fixed #165, Fine tune fixes!
* Fixed an issue with the cooldown timing.
* Fixed issue with 'right click' using items under players.
* Some changes to the minimap control (ctrl + mouse wheel to
  change floors and tweaked the zoom/move speeds).
* Fixed some bugs in the trade module.
* Added new Spells table for spell related functions
  (Also added getSpellByName and getSpellByWords).
* Fixed an issue with follow/attack cancelling (wasn't calling
  onFollowChanged for updates in battle, etc).
2013-01-07 04:04:49 +13:00
BeniS 3fa5993177 Changed scrollbar style, and some other changes:
* Changed the scrollbar style to look a bit nicer.
* Fixed a typo in the EventDispatcher class.
* Added PlayerStates to player.lua.
* Minor tweak to console tab spacing.
* Add unbinding key 'Ctrl+Shift+D' in the options.
2013-01-05 20:57:31 +13:00
BeniS ca46b5033e More progress on cipserver login for pv973 and a few fixes.
* Fixed the "options" module hotkey (changed boost walker to Ctrl+Shift+D).
* Fixed a small issue with UIMiniWindow:setup() function (was setting parent before its pos).
* Pic signature has changed for cipsoft client.
* Fixed 'client type' byte position in the login packet.
* Changed the ping function to execute every 4 seconds rather than 2.
* Changed some protocolgame for pv973 support.
2013-01-04 11:42:02 +13:00
BeniS c47641d7e1 Merge branch 'master' of https://github.com/edubart/otclient 2013-01-03 21:25:00 +13:00
BeniS fc55c6b524 Interface edits, additions, and fixes:
* Added a new module for exiting the client (client_exit).
* Added tab spacing to the UITabBar class.
* Added tab popup menus for things like channel tabs.
* Impelemented channel tab popup menus (still need to be finished).
* Fixed UITabBar tab draging (will now change after dragged half way over the
  next tab, not 2 pixels).
* Fixes to the client_options module.
* Edited some UI settings.
* Changed game_cooldown and game_spelllist menu button icons.
* Fixed some typos.
2013-01-03 21:24:07 +13:00
Henrique Santiago 2aeec22ef8 Fix items draw inside uiitem 2013-01-03 04:24:07 -02:00
BeniS 644241badb Fixed issue #160 and an issue with entergame module. 2013-01-01 05:34:15 +13:00
BeniS 8cdab5c814 Tested and fixed #155
* Also fixed a typo in the game_tibiafiles module.
2012-12-31 00:32:09 +13:00
BeniS abf0ee4303 More walk control optimization and fixes:
* Finished off the walking control optimization! (Should be smooth controlling now).
* Fixed issue #151
* Fixed an issue with the character list.
* Fixed a bug in the g_keyboard.isKeySetPressed function.
2012-12-30 19:14:49 +13:00
BeniS 1782de7336 Game control precision edits and many other fixes:
* Updated the walking(mouse/keys) control to be a lot more responsive/smooth!
* Updated creature diagonal steps to animate faster (due to demand).
* Added a warning popup for boost walker option in cipsoft servers.
* Added KeyUp event controls in the g_keyboard class.
* Fixed an issue with the minimap not reconfiguring.
* Fixed a bug with creature lights drawing properly.
* Fixed refreshContainer method.
* Some layout edits.
* Some minor typo fixes.

TODO:
* Add walk event stack.
* Test new walking edits extensively.
* Finish pending state feature.
2012-12-30 06:41:14 +13:00
BeniS 8961f4dfd4 Some fixes and design tweaks:
* Fixed the game_viplist module to work with the latest vip protocols.
* Fixed a referencing error in the game_cooldown module
* Started editing the design of the popupmenu (needs more work).
2012-12-29 05:15:57 +13:00
BeniS 44e428bccb Progress updating to cv981/pv973:
* Implemented the new client AND protocol version methods.
* Implemented the new speed laws added in cv980 (http://www.tibia.com/news/?subtopic=newsarchive&id=2251).
* Added more missing bytea to login packets (client version/type and some unknown bytes).
* Fixed the InputMessage::getDouble method.
* Cleaned up some of the const values.
* Started on the pending state features.

TODO:
* Pending game state feature.
* Ensure version compatibility hasn't been compromised.
2012-12-29 00:05:45 +13:00
BeniS 619285069c Started updating to 9.8+ features, not yet finished (unsafe version).
Need to finish:
* Pending login state
* New creature speed changes
* Vip state displays

Fixed:
* Creature light
* Missing lua constants

If someone can finish this off that would be good,
I will be busy for a while :)
2012-12-27 02:56:06 +13:00
Samuel a86449dea9 Fix to minimap navigating
Navigating now uses left mouse button (right mouse button for map mark
menu)
2012-12-15 13:26:27 +01:00
Eduardo Bart 7c48a98b67 Minor fixes
* Fix auto openning channels with id 0 (guild chats)
* Minor fix in print
* Fix use of items behind creatures with classic control
* Fix teleports of 1sqm
2012-12-08 16:08:54 -02:00
BeniS 617e6b302b Fix for creature lights.
* Will now load the dat values for creature lights (ed if you know a more conventional way for this please let me know).
* No need to draw light for the outfit the creature draw will handle it.
Note: not sure if the from8bit method should limit at 256 or not, but tibia dat contains colors 216+.
2012-12-03 13:17:41 +13:00
Eduardo Bart b806b57628 Fix issue #143 2012-12-01 20:15:22 -02:00
Eduardo Bart ce6423320e Add ambient light in graphics options 2012-11-30 14:47:53 -02:00
Eduardo Bart 81068f820d Implement lights, thanks @Tarjei400
Now otclient have lights! This code was originally made
by @Tarjei400, I have improved it and merged into otclient
master. Many thanks for tarjei for the contribution.

Warning, this still experimental, fixes may come in the next days.
2012-11-28 23:47:36 -02:00
Samuel eb979ef7cd Modal Dialogs / Support for 9.70
OTC now supports showing and answering modal dialogs.

addDialog(modaldialog, dialogId, cid, callback)

TODO:
-find out what the "popup" value does.. (Maybe someone knows)
2012-11-27 14:48:48 +01:00
Eduardo Bart 7114946278 Fix issue #112 2012-10-23 17:15:59 -02:00
Samuel 7f864003d8 Converted cooldownbar to miniwindow 2012-10-13 21:33:04 +02:00
Samuel 053d29a64b Finishing Minimap Icons
Added rightclick menues:
- on map mark: 'Delete Mark'
- on minimap: 'Create Mark'

Dialog:
http://i.imgur.com/BY33k.png
2012-10-12 01:42:10 +02:00
Samuel 3990ee76e7 Minimap Icons
Now server can call:
doPlayerAddMapMark(cid, pos, icon, description)
and it will be parsed.

TODO:
Adding map icons by rightclick on minimap menu.
Removing icons.

Needs to be tested when switching between different versions.
2012-10-11 17:36:00 +02:00
Samuel f48fb4343f Moveable Tabbars, Stretch/Shrink Fix
Added key 'moveable' to tabbars
(tabbars are ordered with margins now, not with anchors to the previous
widget)

If stretching is forbidden by options the mapPanel will now update when
the window is resized
2012-10-10 22:20:32 +02:00
Samuel 478e796dbd Option: Don't Stretch/Shrink Game Window
Sets gameMapPanel to size 480 x 352
Prevents resizing.
2012-10-10 01:25:50 +02:00
Samuel 95e46dbbaf Fix: Multiline npc messages
- Multiline npc messages with curly braces will now display correctly
- Curly braces are no longer shown in screen
- Removed some tabs  in spellsystem :S My bad ..

TODO: Hightlight text in screen area not only in console?
2012-10-09 20:34:39 +02:00
Samuel c0a3b083f6 Fix loading, style, tooltip 2012-10-09 03:43:52 +02:00
Samuel 286a0fea58 Update to cooldown panel
- Removed cooldowns from game interface
- Using UIProgressRect
2012-10-09 02:46:23 +02:00
Samuel af6a32263c Spell Cooldowns for 8.70+
- Moved SpelllistSettings to spells.lua
- Added cooldownbar for 8.70+
2012-10-08 21:32:25 +02:00
Samuel b4642f9038 Custom spell support & tweaks
- Description available
- Easy setup for custom spells
- Sample custom spells
2012-10-08 06:51:25 +02:00
Samuel 8536c61c01 Spell List: Small tweaks
Tweaks and formatting.
2012-10-07 04:17:45 +02:00
Samuel a83be17bfe Revert "Spell List: Small tweaks"
This reverts commit 261dd40b96.
2012-10-07 04:12:49 +02:00
Samuel 261dd40b96 Spell List: Small tweaks
Tweaks and formatting in spells.lua
2012-10-07 04:11:11 +02:00
Samuel eae002ea71 Spell List module
Spell List similar to Flash client

http://i.imgur.com/Tyxs2.png
2012-10-07 03:24:06 +02:00
Samuel f0e9cf070e Important fix to uiscrollarea
I messed up the code and forgot to commit this.
->Check if function is set before calling it here.
2012-10-06 13:02:46 +00:00
Eduardo Bart 5756f20026 Fix orange text bug for protocol >861 2012-10-05 19:18:16 -03:00
Eduardo Bart fa8b77f0c8 Fix issue #109 2012-10-05 16:14:05 -03:00
Eduardo Bart 526885f70d Fix issue #14 2012-10-05 15:17:10 -03:00
Samuel 6c2539bbd4 Added support for curly braces in NPC chat
-Added overlay to the default consoleBuffer for highlighting
-Char 127 now is used as spacer (Width 1)
-Supports default font "verdana-11px-antialised"

http://i.imgur.com/8drWH.png
2012-10-05 17:50:54 +02:00
Eduardo Bart 394f7a7821 Fix issue #104 2012-10-04 19:50:18 -03:00
Eduardo Bart 8119428d41 Fix issue #90 2012-10-04 19:35:02 -03:00
Eduardo Bart d1812ae695 Fix hotkeys error when selecting items from map 2012-10-04 16:08:12 -03:00
TheSumm faa6a51ac4 Update modules/game_textwindow/textwindow.lua
Scrolling over empty lines fixed.
2012-10-03 19:03:56 +03:00
TheSumm d75841e085 Update modules/game_textwindow/textwindow.lua
Improved behavior
- Up / Down will move the whole screen 1 line up / down
- If scrollbar is at the end and Up / Down is pressed it will move the cursor in the right direction
- You can't change the line by using Left / Right key (to remove bugs with scrollbar)

Bugs:
When editing the text (adding new lines / removing line) the scrollbar doesn't update
2012-10-03 18:51:07 +03:00
TheSumm f514460589 Textwindow.lua update for scrollbars 2012-09-30 06:16:57 +03:00
TheSumm d902a13e1c Textwindow.otui update for scrollbars 2012-09-30 06:16:15 +03:00
otfallen 29ec07efb4 tiny fix to my last commit... used for testing 2012-09-15 03:53:24 +00:00
otfallen f5cbb62eff Fix characterlist being destroyed on ESC pressed closes #93
Signed-off-by: otfallen <f.fallen45@gmail.com>
2012-09-15 03:51:53 +00:00
Eduardo Bart f491bf288f Fix some issues in text window 2012-09-05 21:37:52 -03:00
Eduardo Bart c2bbff5113 Fix issue #87 2012-09-05 16:53:48 -03:00
Eduardo Bart 6f2255071c Fix issue #86 2012-09-05 16:33:36 -03:00
Eduardo Bart a8771e86ad Fix bug when closing character list 2012-09-04 00:42:22 -03:00
Eduardo Bart 4c3b284f0e Fix lua error in stats module 2012-09-03 22:55:02 -03:00
Eduardo Bart 1f61929318 Fix minor issue when logging out 2012-09-03 22:16:15 -03:00
Henrique Santiago e3cbc59cc8 Small fix to characterlist 2012-09-03 03:14:43 -03:00
Henrique Santiago c9688551f3 Fixes to scrollbar 2012-09-01 20:16:17 -03:00
Henrique Santiago 23097980a3 Fix scrollbar slider move, outfit exact size, charlist focus 2012-08-31 20:33:51 -03:00
Henrique Santiago 18a0d7ab94 Fixes to horizontal scrollarea, improve charlist flexibility 2012-08-31 01:56:10 -03:00
Henrique Santiago c517f7b745 Add/get table functions implemented on ext charlist 2012-08-30 02:59:27 -03:00
Eduardo Bart 9bd983ab51 Fix silly for 963 and improve walk 2012-08-29 12:41:04 -03:00
Eduardo Bart 97e1c9d5a9 Support for protocol 963 2012-08-29 12:09:16 -03:00
Henrique Santiago fe6f6c2d20 Spinbox changes 2012-08-29 03:11:53 -03:00
BeniS 9c497f72f9 Added styling option for UISpinBox buttons. 2012-08-29 01:40:04 +12:00
Henrique Santiago 0c5479b031 Spinbox changes 2012-08-27 18:56:05 -03:00
Henrique Santiago 5a367cfe27 Some flexibility changes 2012-08-27 04:47:20 -03:00
Henrique Santiago 9b394785bb Pt translations, flexibility changes 2012-08-26 06:11:05 -03:00
BeniS 3baf2b809d Moved UICreatureButton class to the gamelib directory, minor market fix. 2012-08-26 21:00:50 +12:00
BeniS b58f4aa465 Added new features to the options.
* Added 'enable smart walk' and 'show connection ping' options.
* Minor tidy ups.
2012-08-26 16:27:30 +12:00
Eduardo Bart 4bac36d3bc Implement new cool features
* Implement walk booster (dash) as an option in settings menu
* Dash is smarter (can pre-animate)
* Implement smart walking (walk in diagonal when holding two arrow keys)
* Implement ping meter for all protocols
* Ping meter uses uses real ping packet for 9.6 and walk for others
2012-08-25 16:11:54 -03:00
BeniS 0763b266d5 Some more UI updates and fixes.
* Added UICreatureButton class for handling/replacing "battle buttons" (can now be used in other modules).
* Added the ability to use items on creatures via the battle window.
* Some minor cosmetics.
2012-08-26 04:05:33 +12:00
BeniS f93d79649f Some minor fixes.
* Mount options will no longer display in unsupported protocols.
* Fixed a bug with opening outfit window while its already open.
* Fixed base speed stat when using unsupported protocol.
2012-08-25 17:02:07 +12:00
Eduardo Bart cdea3cdfaf Incraese walk hotkey repeat delay, issue #80 2012-08-25 00:18:43 -03:00
Eduardo Bart 533d8bbbf8 Remove battle and viplist height limits 2012-08-24 20:27:37 -03:00
Henrique Santiago beb04d8d8e Fix container bug, miniwindow pos, creature skulls outsite map bound 2012-08-24 19:59:46 -03:00
Eduardo Bart 715f560b79 Minor fixes 2012-08-24 14:16:38 -03:00
Henrique Santiago f97fa65d37 Many UI fixes. 2012-08-24 05:18:15 -03:00
Eduardo Bart 112d584b66 Allow to set default server in entergame 2012-08-23 14:45:39 -03:00
Eduardo Bart e25bd7fe54 Fix OpenGL ES compilation 2012-08-23 12:37:26 -03:00
Eduardo Bart 1a226f7983 Send reports periodically 2012-08-23 12:19:13 -03:00
Henrique Santiago a306027cec Fixed skins path 2012-08-23 04:17:38 -03:00
BeniS 621b1402c5 Fix market error when logging out, added 910 protocol support. 2012-08-23 15:02:18 +12:00
Eduardo Bart bdbce01c97 Add uid param to stats module 2012-08-22 22:50:42 -03:00
BeniS ecd1ec5c0d Some overall fixes:
* Fix to market constraints.
* Fixed bug with skill percent not rounding.
* Dereference textEdit variable properly.
* Fix to the outfit window regarding mounts.
* Added enableResize to UIMiniWindow.
* Some minor edits.
2012-08-23 02:21:02 +12:00
Eduardo Bart 9eef114779 Update report URL 2012-08-22 05:09:46 -03:00
Henrique Santiago 05fcf740b4 Stats module 2012-08-22 05:51:31 -03:00
Henrique Santiago c50e186fa7 Fix miniwindow height save 2012-08-22 00:33:44 -03:00
Eduardo Bart 64d607b59e Fix issue #77 and improve findPath 2012-08-21 23:10:56 -03:00
Henrique Santiago 868abf3ef6 Miniwindow minimize fix, resizeborder cursor fix 2012-08-21 22:08:21 -03:00
Henrique Santiago 8d89d1194a More fixes to miniwindow 2012-08-21 18:40:47 -03:00
Henrique Santiago f27f005757 Fixed issue #79 and some miniwindows bugs 2012-08-21 17:27:44 -03:00
Eduardo Bart ea4dd2f8e6 Support for compressed textures 2012-08-21 08:09:48 -03:00
BeniS 01a8e57a3c Battle modules filtering buttons no longer scroll, fixed skill modules regeneration alert. 2012-08-21 18:13:16 +12:00
Henrique Santiago 2142ee765d Fix issue #21, but miniwindows can be a lot smarter 2012-08-21 02:35:20 -03:00
Henrique Santiago b39623d437 UIGameMap allow clicking in black 2012-08-20 22:03:30 -03:00
Henrique Santiago 4caf5bfcac Fixed issue #24 2012-08-20 20:56:27 -03:00
Eduardo Bart ddd3f84ad7 Many fixes in win32 platform 2012-08-20 18:53:38 -03:00
Henrique Santiago d1d8b79edc Fix issue #73 2012-08-20 19:50:18 -03:00
Henrique Santiago ac8d6891ca Polish interface, pt translations 2012-08-20 18:58:43 -03:00
BeniS 518e123a08 Added missing talk message types, few minor fixes. 2012-08-21 01:22:47 +12:00
BeniS 4ed52059f7 Forgot to change this back in previous commit.
* Skills that hit 0 will be factored into setSkillBase function.
2012-08-21 00:44:30 +12:00
BeniS 1d20cc9e4b Finalized the mount system and the recently new skills/stats.
* Added mount options to the thing menu.
* Reworked the mounting/dismounting.
* Fixed up some skill module bugs.
* Added alerts to stats like health, mana, capacity, and regeneration time (need to revise this one as it currently has no maximum).
2012-08-21 00:28:19 +12:00
Eduardo Bart 779f298055 Warn when no graphics is detected at startup
Add script for building otclient snaphots
2012-08-19 11:32:30 -03:00
BeniS 8cd8829048 Some more on new skills/stats.
* Fixed updating issue.
* Fixed refreshing issue.
2012-08-19 23:03:44 +12:00
Eduardo Bart ad0ed2b1a9 Bind spell functions 2012-08-19 06:46:24 -03:00
Eduardo Bart fb1c495a4c Fix minor tooltip bug 2012-08-19 06:13:37 -03:00
Eduardo Bart 0e3136f424 Fix stackoverflow caused by new table.copy 2012-08-19 05:48:25 -03:00
BeniS 367955615e Minor fix for recent skill changes. 2012-08-19 20:08:20 +12:00
BeniS 4ce9c921c1 Previous commit and this commit should finish #58 2012-08-19 13:40:04 +12:00
BeniS d237087718 Added new stats to the skills module, fixed minor market error.
* Added Offline Training information.
* Added Regeneration Time information.
* Added Speed information.
* Added base stats/skills information (will show the players increase in a skill e.g. magic level 43 = 40 + 3 bonus from an item).
* Fixed the game feature constants in const.lua.
* Fixed a market error when logging out.
* Added removeTooltip function.
2012-08-19 13:19:43 +12:00
Eduardo Bart 8222e85abd Fix terminus font space width 2012-08-18 18:48:39 -03:00
Tgys 3562fc6dbe Combobox wasn't getting destroyed on terminate
This caused several of those comboboxes to appear next to eachother once reloading this module (whenever you'd do anything with the *ghost* comboboxes, it errors).
2012-08-19 01:49:13 +03:00
Eduardo Bart 5e3882f87a Add libgit2 library, new mingw32 libraries will be uploaded soon 2012-08-18 14:08:05 -03:00
Eduardo Bart ef9a4c5d04 Fix minimap desync, old issue #10 2012-08-18 07:49:16 -03:00
Eduardo Bart 356368ddae Restore minimap saving 2012-08-18 07:34:15 -03:00
BeniS 5812a511d8 Reduced inventory slots spacing and fixed the height. 2012-08-18 21:20:28 +12:00
BeniS 03d46baddf Reconfigured inventory back to normal, fixed a typo. 2012-08-18 20:50:51 +12:00
Henrique Santiago ab7400c51d Progress on issues #60, #24, #21 2012-08-18 02:04:15 -03:00
Eduardo Bart 0bb991e14e Fix auto chase override 2012-08-18 00:30:40 -03:00
Eduardo Bart fdea7f3d66 Basic changes to support multiple charsets in the future 2012-08-17 19:45:56 -03:00
Henrique Santiago 4d2bd54f6b Fixed #12 #28 #51 issues 2012-08-17 18:37:11 -03:00
Henrique Santiago 42ccff8596 Fix table copy function, combat controls now hideable 2012-08-17 02:31:23 -03:00
BeniS 4793908657 Added 944 to protocol support, minor market fix.
* Items board is now update correctly on entering market.
2012-08-16 09:25:45 +12:00
BeniS c4c29be272 Added new market buttons: Close, Refresh Offers, and Reset Market.
* New refresh offers function.
* Fixed Market.reset function.
2012-08-15 23:56:29 +12:00
BeniS 2bd1e0f6c4 Some optimization to the market.
* Market items are not cached to their categories.
* Fixed onMarketLeave issue.
* Few minor fixes.
2012-08-15 16:58:56 +12:00
Henrique Santiago e244e1975d Format name as a feature, do not connect if dont have dat/spr 2012-08-14 20:58:48 -03:00
Henrique Santiago 4e8afab335 Fix rsa change, messagebox and remove lua variable from c++ 2012-08-14 17:37:28 -03:00
Eduardo Bart d0b3c04853 Fix text cursor in win32 2012-08-14 16:27:44 -03:00
BeniS ec934cacdf Some minor market fixes.
* Fixed a display bug (need to look into this more to find full issue)
* Removed debug prints from previous commit.
* Other minor edits.
2012-08-15 04:18:58 +12:00