Giter Club home page Giter Club logo

Comments (7)

ZogStriP avatar ZogStriP commented on August 15, 2024

šŸ‘

from netrunner.

mtgred avatar mtgred commented on August 15, 2024

Hi, I like the idea and will add it to the TODO list. The current development focus on the game engine so it might take a while before it's done unless someone takes it up. In the meanwhile you can try this chrome plugin that provides the functionality https://chrome.google.com/webstore/detail/netrunner-lookup/falbpbbdomlkdjlfippfjopgihdekanf?hl=en

from netrunner.

guirto avatar guirto commented on August 15, 2024

Great!

Thank you very much.

2014-11-13 16:20 GMT+00:00 Minh Tran [email protected]:

Hi, I like the idea and will it to the TODO list. The current development
focus on the game engine so it might take a while before it's done unless
someone takes it up. In the meanwhile you can try this chrome plugin that
provides the functionality
https://chrome.google.com/webstore/detail/netrunner-lookup/falbpbbdomlkdjlfippfjopgihdekanf?hl=en

ā€”
Reply to this email directly or view it on GitHub
#4 (comment).

from netrunner.

queueseven avatar queueseven commented on August 15, 2024

I'm trying to implement this, but I have no knowledge about om/react etc. If someone want's to help me, I described my problem here: #328

from netrunner.

queueseven avatar queueseven commented on August 15, 2024

I'm making progress.

You can take a look here: https://i.imgur.com/HWxlWG7.gif
or see my branch here: https://github.com/DominicKexel/netrunner/tree/cards

Currently I pass a string like [Paige Piper|08004] to the client, so the client knows what URL to display.

I would like the players to be able to also simply type the card name, and the preview should automatically work, as this would also allow me to let the server side mostly unchanged.

(Right know a user could type [Something|A random card id] to mess with the preview)

I was thinking of fetching all cards (just :title and :code) once from the database (maybe store it locally?) and then look up if I find a card title in the message once it gets displayed, and attach the event handler with the correct card code.

Thoughts?

from netrunner.

mtgred avatar mtgred commented on August 15, 2024

All the cards data are already fetched on init and kept in memory on the client side. You can access the cards array with (:cards @app-state).

Based on the card name you can look up the card code to display the card image. Have a look at cardbrowser.cljs as an example.

from netrunner.

queueseven avatar queueseven commented on August 15, 2024

Thanks, good to know.

from netrunner.

Related Issues (20)

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.