Git Product home page Git Product logo

formapi's Introduction

Hi there 👋

🚀 I help you build software and recruiting the best talent for your company

👨🏾‍💻 CEO at @ImWhileCo with over a decade of experience

💬 Let’s chat 👇🏾

Gmail LinkedIn Twitter

👨‍💻 We do:

  • Fullstack development 👨🏾‍💻
  • JavaScript, TypeScript, Java, PHP, and everything related with a heavy preference for backend development.
  • Angular ❤️ and React/ReactNative ⚛️
  • NestJS
Technologies we use

TypeScript JavaScript Java PHP Dart MySQL MongoDB React Angular Flutter Python

formapi's People

Contributors

aabstractt avatar denzelcode avatar josscoder avatar yahir-ar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

formapi's Issues

how to fix Reload pages

That is, I have connected two pages, but inside the second page is a page confirmation, within the second page there will be 2 clicks every round, what should I do if I want to make it confirm on page 2 only 1 time?

Main

 FormAPI.simpleWindowForm("shoprank","Shop Rank","you have to checking your point first")
                            .addButton("vip","VIP", ImageType.PATH,"textures/ui/feedIcon.png")
                            .addButton("vip+","VIP+","https://i2.wp.com/www.shorteng.com/wp-content/uploads/2015/12/photo.jpg?resize=470%2C313")
                            .addButton("gradain","Gradain","https://ps.w.org/wp-smushit/assets/icon-256x256.gif?rev=2263432")
                            .addHandler((e) -> new ShopRankEventListener().onShopConfirm(e))
                            .sendTo((Player) sender);

ShopRankEventListener

    public void onShopConfirm(SimpleFormButtonClickEvent event){
        Player player = event.getPlayer();
        Button button = event.getButton();
        String rank = button.getName();

        HashMap<String,String> mapRank = new HashMap<>();
        mapRank.put("vip","Confirm for to buy RANK VIP price 90 POINT");
        mapRank.put("vip+","Confirm for to buy RANK VIP+ price 150 POINT");
        mapRank.put("gradain","Confirm for to buy RANK GRADAIN price 300 POINT");

        FormAPI.modalWindowForm(
                "conf_buy",
                "Confirm",
                mapRank.get(rank),
                "Yes",
                "No"
        )
                .addHandler((e)-> onBuy(e,rank))
                .sendTo(player);



    }

    @EventHandler(priority = EventPriority.NORMAL)
    public void onBuy(ModalFormSubmitEvent event, String rank){
        Player player = event.getPlayer();

        boolean accepted = event.isAccepted();

        if(accepted){


        } else {
            Sound sound = Sound.RANDOM_ANVIL_LAND;
            player.getLevel().addSound(player, sound);
        }

        player.sendMessage(String.valueOf(accepted));


    }```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.