Coder Social home page Coder Social logo

moaigui's People

Contributors

derickd avatar pygy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

moaigui's Issues

loadLayoutfromData() was removed - but is useful

Hi Derick - I have been using loadLayoufromData() in the moaigui API, to be able to things like this:

app_screens = { 
  { data = dofile(resources.getPath("layout_welcome.lua")),         layername="welcome_" },
  { data = dofile(resources.getPath("layout_genderselect.lua")),    layername="genderselect_" },
  { data = dofile(resources.getPath("layout_weightselect.lua")),    layername="weightselect_" },
  { data = dofile(resources.getPath("layout_heightselect.lua")),    layername="heightselect_" },
  { data = dofile(resources.getPath("layout_birthday.lua")),        layername="birthday_" },
  { data = dofile(resources.getPath("layout_summary.lua")),         layername="summary_" },
}

--- then, later on:

        roots, widgets, groups = g:loadLayoutfromData(app_screens[screen_requested].data, app_screens[screen_requested].layername)

.. and actually, this has worked very well for multi-form layouts. I was just wondering what the reason for removing this from the API was, and if there is an alternative method that you'd like us to be using?

WidgetListRow derives from Image, but init calls AWindow.init instead of Image

Line 51 of widgetlist.lua, I believe you intend a row to derive from Image. But on line 518 (the WidgetListRow init() method) you call AWindow's init, as opposed to Image. This leaves some of row's image-based properties uninitialized.

I found it when trying to use different images for row's background image. It's a quick fix (modify line 518 to call image.Image.init(self, gui)), just thought you'd like to know.

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.