Moderators: seebs, franciscotufro
ibisum wrote:I protest: the samples have not been updated for the refactoring of screenHeight/Width. You know my opinion about this already, I've stated it loudly elsewhere, but checking in a breaking change like this should *not* be allowed within your release team. If such a change to the API is made, the person responsible should *also* update the samples (completely), test them, and update the docs as well.
however there are going to be some bumps with any change.
adam wrote:After scanning through the current SDK release I can see the two problem areas. I missed one of the samples ( an iOS one ) and the header for the docs. My apologies again, we're improving our process, however there are going to be some bumps with any change.
aaa-jv:samples j$ grep -ir screenHeight *
contrib/moaigui/gui/awindow.lua: y = self:screenHeight() - height
contrib/moaigui/gui/awindow.lua: y = (self:screenHeight() - height) * 0.5
contrib/moaigui/gui/awindow.lua: self._screenWidth, self._screenHeight = self._gui:_calcAbsValue(widgetWidth, widgetHeight)
contrib/moaigui/gui/awindow.lua: v2:setRect(0, -self._screenHeight, self._screenWidth, 0)
contrib/moaigui/gui/awindow.lua: return self._screenWidth, self._screenHeight
contrib/moaigui/gui/awindow.lua:function _M.AWindow:screenHeight()
contrib/moaigui/gui/awindow.lua: return self._screenHeight
contrib/moaigui/gui/awindow.lua: self._screenHeight = 0
contrib/moaigui/gui/slider.lua: y = self:screenHeight()
contrib/moaigui/gui/slider.lua: y = self:screenHeight()
contrib/moaigui/gui/slider.lua: y = self:screenHeight() * 0.5 - self._text:height() * 0.5
contrib/moaigui/gui/slider.lua: y = self:screenHeight() * 0.5 - self._text:height() * 0.5
ios/app-screenSize/main.lua:print ( 'screen: ', MOAIEnvironment.screenWidth, MOAIEnvironment.screenHeight )
Binary file test/copy-lose-exe/moai matches
test/hitch-test/main.lua:local screenWidth, screenHeight = 960,640
test/hitch-test/main.lua:MOAISim.openWindow ( "scrolltest", screenWidth, screenHeight)
test/hitch-test/main.lua:viewport:setSize(screenWidth, screenHeight)
test/hitch-test/main.lua:viewport:setScale(screenWidth, screenHeight)
util/util-environment-listener/main.lua:print ( 'screenHeight', MOAIEnvironment.verticalResolution )
ibisum wrote:I see more than 'one sample':
To be fair, moaui is contrib code, so I wouldnt count that.
ibisum wrote:I second the call for API SDK docs to be re-included in the distributables. I think the reason they're not included is because of the build server integration sort of getting in the way, dunno ..
To be fair, moaui is contrib code, so I wouldnt count that.
If it is being re-distributed (as is the case), it should not be broken! Or, if its not going to be maintained that way, then it should be removed with a pointer to the repo ..
We usually don't update the test samples since they aren't shipped with the SDK, they are mostly intended for internal use/bug fixing.
Users browsing this forum: No registered users and 1 guest