Commit graph

59 commits

Author SHA1 Message Date
UnknownShadow200
78a4765142 Make inventory slot -> Block mapping publicly accessible 2017-08-13 23:04:37 +10:00
UnknownShadow200
673ae93b0c Replace properties with fields in 2D classes, remove unused 2D classes methods. 2017-05-28 14:52:19 +10:00
UnknownShadow200
10a0364a89 oops 2017-04-14 18:14:52 +10:00
UnknownShadow200
913e98926e name now rotates with rotated entity 2017-04-14 16:33:29 +10:00
Unknown
42017ad596 Made inventory switching re-bindable and fixed CRTL selecting in inventory screen closing inventory screen.
Inventory switching(I.E. Pressing ALT in-game showing a second inventory) is now re-bindable.

Pressing the CRTL keys should've allowed the user to select a block without the inventory screen closing, but this was not the case. Instead, that functionality was binded to the ALT keys. It has now been re-binded to the CRTL keys.
2017-04-05 18:55:01 -07:00
UnknownShadow200
f320b8dea0 Fix holding down B causing inventory menu to close 2017-03-04 21:44:21 +11:00
UnknownShadow200
3384b1aa55 fix last commit 2017-03-01 17:43:40 +11:00
UnknownShadow200
93b99aa3f0 Add multiple hotbars for inventory.
You can use alt to switch between first and second hotbar. You can also use alt+number to switch to the nth hotbar.
2017-03-01 17:21:27 +11:00
UnknownShadow200
dd0b497136 Initial work on inventory that supports multiple hotbars. 2017-03-01 15:54:52 +11:00
UnknownShadow200
b7c251256d Better Drawer2D api 2017-02-28 10:46:03 +11:00
UnknownShadow200
283c7695c4 Since some people unfortunately rely on fact naming a block Invalid hides it from inventory, let you do that with core blocks too.. 2017-02-28 09:18:54 +11:00
UnknownShadow200
005d0cebe2 For the 0-1 people who bother, make 12 bit block ids as easy as a compile time switch. 2017-02-19 22:29:07 +11:00
UnknownShadow200
612e9f1a6d Fix being able to select blocks in row behind info texture in inventory. (Thanks Fam0r) 2017-02-18 22:44:35 +11:00
UnknownShadow200
a3290a8442 Better scrollbar in inventory (Thanks goodlyay) 2017-02-18 22:27:26 +11:00
UnknownShadow200
e3bc67634d Better scrollbar in inventory (Thanks goodlyay) 2017-02-18 22:09:41 +11:00
UnknownShadow200
5a8710a68b Fix fps limit method not updating text when changed in gui on OpenGL backend
Also move scrollbar to right in block inventory
2017-02-18 22:01:35 +11:00
UnknownShadow200
cf06302e33 Fix leftover issues 2017-02-16 16:42:50 +11:00
UnknownShadow200
c92ebcac6c Use BlockID typedef instead of hardcoding byte everywhere.
In the 0.00001% chance someone changes blockid to be 16 bits
2017-02-16 16:31:17 +11:00
UnknownShadow200
946e5075ac More fixes II 2017-02-11 17:39:27 +11:00
UnknownShadow200
66daa2d86b less crashes when lost context, II 2017-02-11 15:52:30 +11:00
UnknownShadow200
98d435b110 fix licensing 2017-01-20 09:12:04 +11:00
UnknownShadow200
6ec9c2d4b8 Client: also allow using shift and control to scroll hotbar when B menu is open. (Thanks goodlyay) 2016-11-27 22:02:30 +11:00
UnknownShadow200
1aef52fab2 Use standard indentation for everything. 2016-11-27 14:47:09 +11:00
UnknownShadow200
7f92161077 Gfx: IGraphicsApi is no longer responsible for managing dynamic vertex buffers. Simplify dynamic vertex buffer code. 2016-10-12 19:28:00 +11:00
UnknownShadow200
2452cc93a7 Style: Use gfx consistently everywhere, instead of mixing api and graphics. 2016-10-12 12:25:12 +11:00
UnknownShadow200
ac1a6442a7 Core: Now resetting a custom block that overwrote a core block works properly now. Also fix texture pack not being reset in singleplayer when loading a level without one. 2016-10-04 14:09:20 +11:00
UnknownShadow200
64cb13d0a6 Gfx: DeleteVb should reset the id too. 2016-10-01 17:45:17 +10:00
UnknownShadow200
e20f57dcb5 Style: Namespace everything. 2016-09-26 18:33:05 +10:00
UnknownShadow200
7d2c9b0829 Fixes messages to the server including trailing spaces at the end of the chat input. 2016-09-11 13:02:35 +10:00
UnknownShadow200
d837e52724 Better indentation 2016-08-30 12:49:24 +10:00
UnknownShadow200
cc92a2794e oldWidth/oldHeight is never used in the gui code, removed it. 2016-07-25 12:24:57 +10:00
UnknownShadow200
7432413a77 Move gui code to a separate class. 2016-07-25 12:11:55 +10:00
UnknownShadow200
2a233d9b11 Fix z-fighting and picking issues with water/lava. 2016-07-08 14:47:00 +10:00
UnknownShadow200
f533e99418 Fix CPE blocks still showing in inventory even when server does not use CPE blocks. (Thanks Ankeraout) 2016-06-19 20:52:09 +10:00
UnknownShadow200
d6266ed61e Normalise line endings to end this madness. (Thanks Jjp137) 2016-06-11 17:56:37 +10:00
UnknownShadow200
e1d9b979cb Make water/lava be offset down by 1.5 pixels to match original classic. 2016-06-11 17:15:29 +10:00
UnknownShadow200
b2c642b8af Remove Block enum. 2016-06-11 15:29:45 +10:00
UnknownShadow200
1ab620559b Fix key bindings not working due to mono compiler issue with enum initalisers. 2016-06-10 17:17:10 +10:00
UnknownShadow200
58aea5ca6b Refactor key bindings menus. 2016-06-10 15:19:14 +10:00
UnknownShadow200
1b8861b8a9 Don't render hotbar twice when inventory menu is open, oops. 2016-06-08 15:24:33 +10:00
UnknownShadow200
041bbc5f5d Fix clicking on scrollbar in inventory closing inventory, ooops. (Thanks lavacraft) 2016-06-07 10:18:31 +10:00
UnknownShadow200
0cfd1c2e37 Release 0.99.1 2016-06-06 22:00:19 +10:00
UnknownShadow200
75486ad445 Fix issues with lighting on chunk horizontal borders, fixes #162. (Thanks goodlyay) 2016-06-05 00:40:15 +10:00
UnknownShadow200
fb3da95d1b Draw selected box around picked block in classic mode. 2016-05-29 00:01:52 +10:00
UnknownShadow200
1011111de7 Use original classic background colours, don't show chat background box in pure classic. (Thanks FrostFox), closes #167. 2016-05-28 23:39:54 +10:00
UnknownShadow200
087be01db2 Disable players tab list in singleplayer (makes no sense), disable alt text widget in classic mode. 2016-05-26 21:17:19 +10:00
UnknownShadow200
f15f0134c1 Use the original classic inventory table colours. 2016-05-26 17:03:05 +10:00
UnknownShadow200
c5bf202336 Use same block ordering as vanilla in classic mode. 2016-05-16 19:07:14 +10:00
UnknownShadow200
be28a782f5 Don't show CPE blocks unless the server supports them. 2016-05-16 18:04:42 +10:00
UnknownShadow200
e9ea36a03c First pass of optimising isometric block drawing. 2016-05-13 18:06:20 +10:00