From 4289d00e3066a8a382cf670edaa28b6592b3912a Mon Sep 17 00:00:00 2001 From: wsor <24964441+wsor4035@users.noreply.github.com> Date: Sun, 15 Aug 2021 20:44:52 -0400 Subject: [PATCH] commit book progress --- mods/fl_books/init.lua | 39 ++++++++++++++++++ .../textures/farlands_book_bg_brown.png | Bin 0 -> 4539 bytes .../textures/farlands_book_bg_white.png | Bin 0 -> 4564 bytes mods/fl_books/textures/farlands_book_raw.png | Bin 0 -> 369 bytes .../textures/farlands_book_signed.png | Bin 0 -> 2979 bytes .../textures/farlands_book_written.png | Bin 0 -> 404 bytes 6 files changed, 39 insertions(+) create mode 100644 mods/fl_books/init.lua create mode 100644 mods/fl_books/textures/farlands_book_bg_brown.png create mode 100644 mods/fl_books/textures/farlands_book_bg_white.png create mode 100644 mods/fl_books/textures/farlands_book_raw.png create mode 100644 mods/fl_books/textures/farlands_book_signed.png create mode 100644 mods/fl_books/textures/farlands_book_written.png diff --git a/mods/fl_books/init.lua b/mods/fl_books/init.lua new file mode 100644 index 0000000..0378ac6 --- /dev/null +++ b/mods/fl_books/init.lua @@ -0,0 +1,39 @@ +minetest.register_craftitem("fl_books:book_raw", { + description = "raw book", + inventory_image = "farlands_book_raw.png", + stack_max = 1, + on_use = function(itemstack, user, pointed_thing) + --minetest.chat_send_all("test") + local formspec = { + "formspec_version[4]", + "size[10.4,14.7]", + "no_prepend[]", + --background + "bgcolor[black;neither]", + "background9[0,0;10.4,11.3;i3_bg_full.png;false;10]", + "background9[0.5,0.5;9.4,10.3;i3_slot.png;false;10]", + --body + "style_type[textarea;noclip=false]", + "textarea[1,2;3,3;test;test1;test2]", + --bottom buttons + "style_type[image_button;bgimg=i3_btn9.png;bgimg_hovered=i3_btn9_hovered.png;", + "bgimg_pressed=i3_btn9_pressed.png;bgimg_middle=4,6;noclip=true;border=false;bgcolor=#ffffff00]", + --"style[i3_btn9.png;bgimg_hovered=i3_btn9_hovered.png]", + "image_button[0.5,12;3,1;i3_btn9.png;sign_btn;sign]", + "image_button[7,12;3,1;i3_btn9.png;write_btn;write]", + } + minetest.show_formspec(user:get_player_name(), "fl_books:book_raw", table.concat(formspec, "")) + end +}) + +minetest.register_craftitem("fl_books:book_written", { + description = "written book", + stack_max = 1, + inventory_image = "farlands_book_written.png" +}) + +minetest.register_craftitem("fl_books:book_signed", { + description = "signed book", + stack_max = 1, + inventory_image = "farlands_book_signed.png" +}) \ No newline at end of file diff --git a/mods/fl_books/textures/farlands_book_bg_brown.png b/mods/fl_books/textures/farlands_book_bg_brown.png new file mode 100644 index 0000000000000000000000000000000000000000..34e004df45b43d441bb1f15d9aa77b8ac517bb6a GIT binary patch literal 4539 zcmeAS@N?(olHy`uVBq!ia0y~yV4MKL9Be?5hW%z|fSmkHXXk*-uGqLFxDd(aMQ)&$0=r%zXN$=1=;+hjT0w`bDNJddK6mG34T+hZD+8H$Hn?f4r4l z-E5AhYxwk}?!u~L=NDh`v|%|DxA*m~V+mG^wG)at&ugs;6PzdBmlGN?`Fo4|lo})5 z8l^YapEMlWzHHv6A7`J;IU28){qY6UjkELa#jr28ia43=`cN}5eq%sr)N{l9N9U%5 zB~3b>(z{q#)rUi0b5%~z0w;$e&$MfI#dCg5)9iMixZjJ{SH|+wqp#gjQ`bqJjJ#<4 zNp!``;{W#kw${eErRD7l-d{DaQ(sUoFI9T@hplPPF-eQK2fMC(o1W@de1FmP+q2$F z*jN`-UcMH@Ua*yW@%gMEZ!^_)ooX{~d2xd&4G*g&BDSYpz4iPL=cC)7T*?b7SSAO( zzxjhX$29%ev+eh%0Aql&z$3Dlfq`2Hgc&d0t^32k!2ik9#WAEJ?(OZpT~pF!+8>s? z^{ms;5OdREYHDR+5^8!NwIS61AoB^u3Z7}2#SHVBZbiM}5>w)sq_knK1b1M>ABP*B z^A6~AuDQ6^`}w9jwe?41{yaQ3^XAPjo%Q1Sv6h8p-`-sN_2t>ETW{{ZRKDDPcz)Hj z^PB<-4i8=nR@lq_`%qT+<>$GQH}AeZI&-$2|K0vu@2{Ty_WNOP@8)v9vvF~A{kv=H z|9>^8RAu21Q20>KwEJ?-$E3nf_uj63`&!=q`+SF-m|cJV@_)A9c5V6g;}eAx92yuJ zmmWB`<=d~5?{@aCWuNUo-TpTBiH_s_pYO|8uRe7UXnDhdI;O{K*Shb1uCJqP6mMtp z@42E}UmF7>6N{ayfs|p?#y@}U871deR@^>y5v=|>i<`Ea@v-8~A9Giq{(M}&HsPP8 z*?x79Wr_xN5%=%xE%A=N|!dE6|eZ9Dn{k{Q2g>77I)H`sW{2na_iS zLC(uKUh`+7f)EqPQw0Kz7yEYR$H}&w*$m_tK85ai!zC}+XK}v53 z3kVzs8oEIwVTM#7A(IE{sQ$<0c^K1u53(FB+kTniM0uzp;xqwtNJz@hnNP&~X zBgt3^WB_9!Gsvn5EG#M;B?W=18ya?iOcU^6Vw!ZL2c+7;;SSgVDvXStIc^};3JQ53 z(^w`oG^m&A(hol*-d*ILp9^gstrHC zTzvPFd$FGO>cdvKe})Kb8k@JYc;U5 zX&^tp^3J_m`~H2@{+FVl7q_eE(VI6n*M5C@cI(!gyDz&h<8KddKD}B6=z%Qmp6#oS p-LLFf|Ee!Px|jdVcj2GhTLss9?>y~V3LFw(@O1TaS?83{1OR0Y(QE(! literal 0 HcmV?d00001 diff --git a/mods/fl_books/textures/farlands_book_bg_white.png b/mods/fl_books/textures/farlands_book_bg_white.png new file mode 100644 index 0000000000000000000000000000000000000000..fb80d90ce33bc960018e0d701ec0bd11ad669a31 GIT binary patch literal 4564 zcmeAS@N?(olHy`uVBq!ia0y~yV4MKL9Be?5hW%z|fSmkHXXk*-uGqLFxDd(aMQ)&$0=r%zXN$=1=;+hjT0w`bDNJddK6mG34T+hZD+8H$Hn?f4r4l z-E5AhYxwk}?!u~L=NDh`v|%|DxA*m~V+mG^wG)at&ugs;6PzdBmlGN?`Fo4|lo})5 z8l^YapEMlWzHHv6A7`J;IU28){qY6UjkELa#jr28ia43=`cN}5eq%sr)N{l9N9U%5 zB~3b>(z{q#)rUi0b5%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+t)w4ahCaa znXbNX+V1qrnn|FJUj#$r!}+V)?thl33n~ARx%wgZ=d*FY?ITh)ZduC2EeRYeVDNPH Kb6Mw<&;$TSsn;U_ literal 0 HcmV?d00001 diff --git a/mods/fl_books/textures/farlands_book_raw.png b/mods/fl_books/textures/farlands_book_raw.png new file mode 100644 index 0000000000000000000000000000000000000000..ea8b02f1c17585fb3475da0867e8c36242180dad GIT binary patch literal 369 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)1m%whVmCRsAeL5zYdS z$YKTtZeb8+WSBKa0w~B{;_2(k{*awROu;<()CqB*&_7QX#}JFtYbQHqF*ypj)|)ct zl}uL9D_Z8T?t$i=DhAt@?1RxeM80$8F$uL8NF*yHUApgDem%Xqf zX8V!caj!@2eP!>9wKhpM_c<9vqI4d`bsd*-+^QC9YIxxKx9v?cH&p!pVY%9csm1%p z?yX<#m_nH5M=hAG%6Ka(IHO^y_v53-x|v*#FzOidEm-5V;q;A#sejgZFiCvRjAU-^ z?ru=HRGju$W)g$e=|}oL4LM>5s_tEBZ*=qCsi`yV_iX#8TpOzXxz*cboKcc}Jw4o~ zeX>M>%7xk&3-9hc%_DZBei}o=+hsogef;-ci;SFHXn0$O<-ef%;i~e=-8ye30Yiep M)78&qol`;+0F!EtRR910 literal 0 HcmV?d00001 diff --git a/mods/fl_books/textures/farlands_book_signed.png b/mods/fl_books/textures/farlands_book_signed.png new file mode 100644 index 0000000000000000000000000000000000000000..80ca0e6c17663725e82f5fdb1cf71103d4aa6623 GIT binary patch literal 2979 zcmV;U3taSxP)uJ@VVD_UC<6{NG_fI~0ue<-1QkJoA_k0xBC#Thg@9ne9*`iQ#9$Or zQF$}6R&?d%y_c8YA7_1QpS|}zXYYO1x&V;8{kgn!SPFnNo`4_X6{c}T{8k*B#$jdxfFg<9uYy1K45IaYvHg`_dOZM)Sy63ve6hvv z1)yUy0P^?0*fb9UASvow`@mQCp^4`uNg&9uGcn1|&Nk+9SjOUl{-O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