Konrad Kuśnierz
f9d183837a
Add option to save messages from channel
9 years ago
Eduardo Bart
02c6b1b6c7
Missing changes for multiline text
9 years ago
Eduardo Bart
0c1540e531
Improve multiline text selection, closes #507
9 years ago
Konrad Kuśnierz
559e545e36
Few more minor fixes to selection in game console
9 years ago
Konrad Kuśnierz
cf90bb9807
Fix selection
...
Perhaps it would be wise to move widget local variables to some sort of
global variable for each tab.
9 years ago
Konrad Kuśnierz
f35c939fc3
Start working on multi-line selection for console
...
Unfortunately UITextEdit is really bad in terms of performance. It
cannot be used as overlying widget (just like in terminal). On the other
hand we could optimize it by rewriting (unfortunately) the whole widget.
There still is a lot of things to do, but for now it is possible to
select several lines of text and copy it using CTRL + C. In order to
make text copyable in context menu it will be required to override
onMousePress (return true).
9 years ago
Konrad Kuśnierz
c5ea8c98fb
Add cn option to struct
...
"cn" a sequence of exactly n chars corresponding to a single lua string.
9 years ago
Konrad Kuśnierz
02ab50d8dd
Minor mistake in unpacking string
9 years ago
Konrad Kuśnierz
48fefb03cb
Add float and double support for struct
...
@edubart suggested it would be still better to have it done within C as
extra module (just like lbitlib).
"f" a float (4 bytes).
"d" a double (8 bytes).
http://en.wikipedia.org/wiki/IEEE_floating_point
9 years ago
Konrad Kuśnierz
7ea6c46b2c
Add binary operations for lua
...
This is something I was always missing - posibbility to operate on
binary files or streams in pure lua. In most cases we do only need to
read simple variables from files such as integers with different amount
of bytes. This "class" will provide that ability.
It's a simple implementation of following C module for lua:
http://www.inf.puc-rio.br/~roberto/struct/
It has much less, though. Following elements have been implemented:
">" flag to set mode to big endian.
"<" flag to set mode to little endian.
"b" a signed char.
"B" an unsigned char.
"h" a signed short (2 bytes).
"H" an unsigned short (2 bytes).
"i" a signed int (4 bytes).
"I" an unsigned int (4 bytes).
"l" a signed long (8 bytes).
"L" an unsigned long (8 bytes).
"s" a zero-terminated string.
An example how to use it:
```lua
local packed = Struct.pack('<LIhBsb', 123456789123456789, 123456789,
-3200, 255, 'Test message', -1)
-- packed is now a lua string we can save to file as binary data
local L, I, h, B, s, b = Struct.unpack('<LIhBsb', packed)
print(L, I, h, B, s, b)
```
You can use g_resources.readFileContents as function to read binary
files and parse them via this class.
9 years ago
TheSumm
fe98efdc21
Fix modal dialog auto sizing, fixes #556
9 years ago
TheSumm
8e5bbcd3a1
Add tab-spacing tag to MoveableTabBars
9 years ago
TheSumm
84f6cdec86
Fix #576 , PopupMenus close when leaving the game
9 years ago
Łukasz Kurowski
01c107ba62
Market my offers
9 years ago
Łukasz Kurowski
ff0947c270
NPC start talk
9 years ago
TheSumm
b237b713ef
Fix 10.76 login protocol, added missing lua consts
9 years ago
TheSumm
3bffa6b04a
Terminal new line (Shift+Enter) functionality
9 years ago
TheSumm
83dc129f03
Protocol 10.76, fixed death window & death packet
9 years ago
Eduardo Bart
5387f8fe83
Merge pull request #632 from SuggestName/master
...
Minor change in statusLabel anchor for Ctrl + .
9 years ago
Suggest Name
b5c7374890
Update textmessage.otui
9 years ago
TheSumm
cbf70c1d63
Enable protocol 10.75
9 years ago
Mateusz Pawlica
af0819f454
Changed rule violation window default focus
9 years ago
Mateusz Pawlica
27f7871a08
Minimap widget is now horizontally resizeable
9 years ago
TheSumm
6961492e00
Fix console tabs not blinking, closes #627
9 years ago
TheSumm
1c3cfddab0
Removed tr() from UIHeader
9 years ago
TheSumm
71931b961a
Full protocol 10.74 support (session key), entergame style fixes
9 years ago
TheSumm
64e9406488
Fixed 'widget destroyed but still have 1 reference left' related to console module
9 years ago
TheSumm
cb7cea6809
Tiny signalcall fix
9 years ago
TheSumm
4e2ded571e
Fixed not being able to relog after reloading gamelib
9 years ago
TheSumm
da2762dac3
Market now highlights offers which differ from the average price
9 years ago
TheSumm
eb3c244023
More Market fixes
...
* Fixed NextButton and PreviousButton style
* Little update to SpinBox including dontSignal
* Market cleanup and more check to be safe
* Limit Market amountWindow by player balance
* Set proper maximum amount when creating offers
* Fixed fee label not calculating the correct fee sometimes
9 years ago
TheSumm
3157e7924f
Market updates, now using showAs / tradeAs so every items works properly, some cleanup / bug fixing
9 years ago
TheSumm
92e2e8224f
Added market message, reworked text messages a little
9 years ago
TheSumm
607dab01d6
Added Market column sorting ( fixes #429 ), updated UITable and fixed not working methods
9 years ago
TheSumm
6edc73a8ba
Fix Enter Game window not being centered on startup
9 years ago
TheSumm
596717bf32
Added locale number formatting to locale files
9 years ago
TheSumm
b5cea41f87
Market fixes
...
- Market now works after reloading
- Fixed button / tab styles
- MarketRightTabBarButton now inherits the base style
- Fixed amountWindow buttons being hardly clickable
- "All" search filter is now on by default
9 years ago
TheSumm
8542f8bfd4
Protocol 10.73 support
9 years ago
TheSumm
fc76ca4523
Updated advernturer blessing inventory style to be more robust
9 years ago
TheSumm
a8f2bb19db
Little polishing of Unjustified Points module
9 years ago
TheSumm
ddec9627b8
Protocol 10.72 (Authenticator) Support, Unjustified Points diplay
...
- Unjustified Points (Better topbar icon would be nice)
![Unjustified Points](http://i.gyazo.com/81286f46d9b4d56b3fe864140173cf34.png )
- Authenticator token support
- adjusted 'can change pvp frame' to 1054
- ...
9 years ago
TheSumm
24b1526534
Fixed sending wrong OS
9 years ago
Konrad
bf30fc0dc3
Add QEZC for diagonal walking as well as broadcast/red talk for gamemasters
9 years ago
TheSumm
50c36bb2ba
Fix for adventurer blessing style
9 years ago
BenDol
16f6a0019c
Fix dat loading issue with 10.00 & minor outfit window fix.
9 years ago
TheSumm
7f3f18f991
Support for Protocols up to 10.71, Adventurer Blessing
9 years ago
Konrad Kusnierz
5ada7eb5ec
Fix #600
10 years ago
Konrad Kusnierz
c49a6f3bf2
Fix for #596
10 years ago
BenDol
25e7b1d7a3
Fix logging in with 760 (until a better solution is found).
10 years ago
BenDol
9f3ebb0036
Fix #577 dash will now fire onWalk (with isDash parameter).
...
Also added missing client versions.
10 years ago
Sam
4e5707720b
Merge pull request #574 from diath/patch-console
...
Support upper and lower case letters for hotkeys starting with #s, #y and #w
10 years ago
Kamil Chojnowski
c8f9cdd6fa
Support upper and lower case letters for hotkeys starting with #s, #y and #w
10 years ago
Kamil Chojnowski
7cfa9c38e0
Hide item image box when editing house lists
10 years ago
Ben Dol
fa317c534d
Merge pull request #548 from Shawak/master
...
string:contains()
10 years ago
BenDol
ef7f94ac76
Some minor changes/additions.
10 years ago
BenDol
3343919c92
Added GameEnhancedAnimations to lua
10 years ago
BenDol
c706dc12fe
Update PIC_SIGNATURE can now access the character list.
10 years ago
BenDol
1f272b7aba
Added preview state packet.
10 years ago
BenDol
d7429c201c
Started 1050 implementation and fix ups:
...
* Dat now loads (new animations aren't yet functional).
* Fixed the way we reference client versions.
TODO: Write new animation functionality & find out protocol changes.
10 years ago
Shawak
939e16c59a
string:contains()
10 years ago
BenDol
a52c938fef
Added missing protocol versions & made some style fixes.
10 years ago
Sam
6b46370d1a
7.4 .dat support, playing an actual server might not work yet
10 years ago
BenDol
c2ff89b2cf
Some style fixes & menu-scroll to add server.
10 years ago
Sam
2a57a5f7d0
Browse field, locked & paginated container support
10 years ago
BenDol
9e0ddb08e3
More debug prints and avoid null pointer.
10 years ago
BenDol
74979ca16a
Remove debug print and redundant checks.
10 years ago
BenDol
0c77179c46
Should check the menu category before creating a separator.
10 years ago
BenDol
935b9e4cd6
Forgot removeMenuHook function.
10 years ago
BenDol
0f362f80e3
Added easy menu hooking, fixed terminal default size/pos & more:
...
* Added autowalk style option to Minimap style.
* Added onCreate for setting up variables before styling is applied etc.
10 years ago
BenDol
0b5654f870
Style fixes and added dontSignal to UIRadioGroup.
10 years ago
Sam
4ec5048730
Remove test statement
10 years ago
Sam
6b8e810466
Merge branch 'master' of https://github.com/edubart/otclient
10 years ago
Sam
9b3e0a324c
Color adjustments and fixes
10 years ago
BenDol
f7531383f3
Fix an issue with the spinbox buttons.
10 years ago
BenDol
7724b8059d
Forgot this from previous commit.
10 years ago
BenDol
2ada93db9c
Should use the set minimum for these!
10 years ago
BenDol
d070711409
When reaching max or min scroll allow other scroll areas to scroll.
10 years ago
BenDol
5909634837
Avoid ending mouse scroll chain when scroll bar is 'off'.
...
Also added mouse-scroll style to UISpinBox.
10 years ago
BenDol
9f7aafac0b
Fix a crash issue when attempting to draw invalid item.
...
This can happen when using UIItem as interfaces etc.
10 years ago
BenDol
12b3bd4ee0
Fix table.equals
10 years ago
BenDol
9e30c39035
Pointless storing a reference to super.
10 years ago
BenDol
3dbcb1daee
Added basic table.equals, dontSignal param to combobox calls & spell methods.
10 years ago
Sam
a9d4fd5e1e
Scrollmenu for Comboboxes, fixes #480
10 years ago
djayk1
9f8293a5a0
Update game.lua
10 years ago
BenDol
ce9e443c60
Remove redundant classes & added some Position methods.
10 years ago
BenDol
99b1ddf44c
Must change UIMap class checks to UIGameMap.
10 years ago
BenDol
c083d02bef
Some fixes for class names and queue (added base class).
10 years ago
BenDol
00253e46b3
Added Queue class for event queuing (see CandyBot for examples of this).
10 years ago
BenDol
d2b7de3801
Will stick to basic isInRange check function.
10 years ago
BenDol
adcf258551
Forgot to add this.
10 years ago
BenDol
2df51622ba
Some improvements to some things.
10 years ago
BenDol
a7d7667491
Added gamelib for Position functions.
10 years ago
Sam
f23e70ff08
Fix battlelist square bug / Cleanup
10 years ago
Sam
b96be291bb
Fix use-with issue #508
10 years ago
BenDol
06855dd1de
Added subType for Player:getItem/getItems.
10 years ago
BenDol
45b41b88bd
Merge branch 'master' of https://github.com/edubart/otclient
10 years ago
BenDol
1baad726ae
Just use g_configs.unload(config) to unload config files.
...
Avoids concurrent modification errors.
10 years ago
Nail
41b2f9b911
Per-pixel transparency.
10 years ago
BenDol
1074b6b787
Provide the option to suppress lua call in setText
10 years ago
BenDol
d45fbcb10f
Fixed terminal size bug
10 years ago