{"action":"created","issue":{"url":"https://api.github.com/repos/Infinideastudio/NEWorld/issues/59","repository_url":"https://api.github.com/repos/Infinideastudio/NEWorld","labels_url":"https://api.github.com/repos/Infinideastudio/NEWorld/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/Infinideastudio/NEWorld/issues/59/comments","events_url":"https://api.github.com/repos/Infinideastudio/NEWorld/issues/59/events","html_url":"https://github.com/Infinideastudio/NEWorld/issues/59","id":169043349,"number":59,"title":"Another wheel：轻量级GameUI","user":{"login":"qiaozhanrong","id":7543093,"avatar_url":"https://avatars.githubusercontent.com/u/7543093?v=3","gravatar_id":"","url":"https://api.github.com/users/qiaozhanrong","html_url":"https://github.com/qiaozhanrong","followers_url":"https://api.github.com/users/qiaozhanrong/followers","following_url":"https://api.github.com/users/qiaozhanrong/following{/other_user}","gists_url":"https://api.github.com/users/qiaozhanrong/gists{/gist_id}","starred_url":"https://api.github.com/users/qiaozhanrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiaozhanrong/subscriptions","organizations_url":"https://api.github.com/users/qiaozhanrong/orgs","repos_url":"https://api.github.com/users/qiaozhanrong/repos","events_url":"https://api.github.com/users/qiaozhanrong/events{/privacy}","received_events_url":"https://api.github.com/users/qiaozhanrong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2016-08-03T04:07:05Z","updated_at":"2016-08-06T14:39:40Z","closed_at":null,"body":"我一开始对UI的设想就是给个SDL2的封装（Window类），再给几个控件类。。。\r\n然后现在@DREAMWORLDVOID 的`GameUI`做成了UI控制整个程序的框架。。。\r\n这样一来感觉有点复杂了，我觉得VOID这么做的目的主要还是为了控制布局（如果还有别的目的请评论）\r\n\r\n我的想法是，布局用`百分比+偏移量`作为坐标应该也行了，理论上能实现`Grid`的所有效果。。。\r\n因为`Grid`嵌套布局的坐标中也只有`绝对坐标`和`比例坐标`两种。。。\r\n变量也只有窗口高宽。。。\r\n确定一个点坐标的多项式最终可被化简为`(a0*窗口宽度+c0, a1*窗口高度+c1)`\r\n我的`百分比+偏移量`坐标其实就是给定一个坐标的`a0`，`c0`，`a1`，`c1`来实现自动布局\r\n说起来可能有点麻烦，但是NW的UI布局不会太复杂，用这种方式布局反而有简便的优势。。。"},"comment":{"url":"https://api.github.com/repos/Infinideastudio/NEWorld/issues/comments/238026433","html_url":"https://github.com/Infinideastudio/NEWorld/issues/59#issuecomment-238026433","issue_url":"https://api.github.com/repos/Infinideastudio/NEWorld/issues/59","id":238026433,"user":{"login":"DREAMWORLDVOID","id":15832035,"avatar_url":"https://avatars.githubusercontent.com/u/15832035?v=3","gravatar_id":"","url":"https://api.github.com/users/DREAMWORLDVOID","html_url":"https://github.com/DREAMWORLDVOID","followers_url":"https://api.github.com/users/DREAMWORLDVOID/followers","following_url":"https://api.github.com/users/DREAMWORLDVOID/following{/other_user}","gists_url":"https://api.github.com/users/DREAMWORLDVOID/gists{/gist_id}","starred_url":"https://api.github.com/users/DREAMWORLDVOID/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DREAMWORLDVOID/subscriptions","organizations_url":"https://api.github.com/users/DREAMWORLDVOID/orgs","repos_url":"https://api.github.com/users/DREAMWORLDVOID/repos","events_url":"https://api.github.com/users/DREAMWORLDVOID/events{/privacy}","received_events_url":"https://api.github.com/users/DREAMWORLDVOID/received_events","type":"User","site_admin":false},"created_at":"2016-08-06T14:39:40Z","updated_at":"2016-08-06T14:39:40Z","body":"@Miigon 对于为何不把渲染放在主线程上的理由我也已经充分说明了。大规模渲染处理的时候非常消耗CPU时间，尤其是目前的渲染框架采用了OpenGL。放在主线程有非常大的可能性导致阻塞事件处理"}}
{"actor":{"display_login":"DREAMWORLDVOID"}}