Restore captured chat for RIA reference entry
All checks were successful
DuneRealms Plugin CI / plugins (push) Successful in 2m56s
All checks were successful
DuneRealms Plugin CI / plugins (push) Successful in 2m56s
This commit is contained in:
parent
146a5c46ae
commit
bcab979127
1 changed files with 86 additions and 138 deletions
|
|
@ -11,7 +11,7 @@ public class RendererVerification {
|
|||
String[] names={"note_10","note_20","note_50","note_100","note_500","coin_050","coin_1dm","coin_2dm"};String[] amounts={"10.00","20.00","50.00","100.00","500.00","0.50","1.00","2.00"};
|
||||
for(int n=0;n<names.length;n++){cash.add(new Card(10+n,amounts[n]+" DM",List.of("Select one bill or coin"),"paper"));String asset="pack/assets/dunerealms/textures/item/currency/"+names[n]+".png";Path target=dir.resolve(asset);Files.createDirectories(target.getParent());Files.copy(Path.of("../network/resource-pack/central/overlay/assets/dunerealms/textures/item/currency/"+names[n]+".png"),target,StandardCopyOption.REPLACE_EXISTING);cashArt.put(10+n,asset);}
|
||||
cash.add(new Card(24,operation.equals("withdraw")?"Withdraw 50.00 DM":"Deposit 50.00 DM",List.of(),"gold_ingot"));
|
||||
}else if(operation.equals("redeem"))cash.add(new Card(13,"Enter RIA ID",List.of("Open the reference entry window"),"writable_book"));
|
||||
}else if(operation.equals("redeem"))cash.add(new Card(13,"Enter RIA ID",List.of("Type the reference in chat"),"writable_book"));
|
||||
cash.add(new Card(36,"Back",List.of(),"arrow"));
|
||||
String html=SuppliedDocument.html(operation,"Rihla · "+operation,"Choose your transaction",cash,operation.equals("receipt")?List.of("Cash deposit — Amount: 50.00 DM","RIA ID — RIA-0123456789ABCDEF0123456789ABCDEF"):List.of(),cashArt);
|
||||
var page=Page.of(html,dir.resolve("rihla-"+operation+".html"),loader);
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff