[SoaS] Super Chef 2 activity
James Cameron
quozl at laptop.org
Fri Aug 11 18:58:17 EDT 2017
G'day Raul,
SuperChef-2 depends on 1200x900 resolution of the OLPC XO, and uses
image instead of vector graphics.
Your notebooks may be a different resolution. As a result, images may
be positioned outside display boundary. What is the resolution?
The author did not write the program for different resolutions.
Also, absolute coordinates have been used, instead of relative
coordinates.
SuperChef might be fixed by;
1. resize each of the background images in res/background/*.png,
although these images do not have source code so resizing will require
artistic care of a graphic designer,
2. for each of the buttons that do not display completely, change
drawing coordinates, see class ScreenSelectGender and line 1699 of
View.py
3. cascade to change mouse action detection coordinates, such as
line 1572,
4. or add calculation of coordinates using display resolution instead
of asserting 1200x900 resolution.
It looks like several hours or days of work for a programmer.
While doing this work, please consider internationalisation; at the
moment the images contain text in one language only.
On Fri, Aug 11, 2017 at 12:17:56PM -0400, Raul Benitez wrote:
> Hi all
>
> I installed Sugar 0.108 through SoaS 25, installed in notebooks.
>
> The problem is the following:
>
> The background images and the buttons to select surpass the screen, so for this
> example the "Child" and "Girl" buttons are not displayed completely. Another
> example is the "Serve Dish" button that can not be displayed on the screen when
> it comes to advancing.
>
> The last lines of the error log is:
>
> ** Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
> 1502133820.791122 WARNING root: KeepButton has been deprecated since Sugar 0.94
> and should not be used in newly written code.
> 1502133820.794311 WARNING root: No gtk.AccelGroup in the top level window.
> libpng warning: iCCP: known incorrect sRGB profile
>
> I tried to change the screen resolution in the source code /SuperChef.activity/
> src/View.py but because I tried changing different resolutions does not give
> results.
>
> I need direction and assistance to be able to debug and fix it myself, please.
>
> I need to make it work for use in a school.
>
> Thanks!
> Raul Benitez
--
James Cameron
http://quozl.netrek.org/
More information about the SoaS
mailing list