[kgeography] [Bug 457725] Blurring out the answer from flags

2022-09-13 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=457725

Albert Astals Cid  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/educ
   ||ation/kgeography/commit/be6
   ||af721029c8b28d1be33dca13354
   ||a6ab13b03d

--- Comment #5 from Albert Astals Cid  ---
Git commit be6af721029c8b28d1be33dca13354a6ab13b03d by Albert Astals Cid, on
behalf of Vlad Rakhmanin.
Committed on 13/09/2022 at 20:47.
Pushed by aacid into branch 'master'.

Implemented blurred flag feature

**What does this merge request address?**

This merge request relates to the Bug 457725, which suggested a new feature
whereby certain flags with text on them can be blurred out, to make the flag
guessing games more challenging. The flag should only be blurred in the
guessing games, and in normal "browsing" mode the flag should remain unblurred. 

**How has the new functionality been implemented?**

The map parser has been amended to now look for an additional division property
entitled "blurredflag", which should contain a blurred variant of the flag. A
new method has been added to the "division" class entitled
"getFlagForQuestion", which returns a blurred flag if one is available. This
method is now used in the flag guessing games.

M  +2-0data/brazil.kgm
M  +2-0data/flags/brazil/CMakeLists.txt
A  +---data/flags/brazil/blurred_br_PN.png
A  +---data/flags/brazil/blurred_br_RJ.png
M  +7-0data/flags/italy/CMakeLists.txt
A  +---data/flags/italy/blurred_it-cal200.png
A  +---data/flags/italy/blurred_it-emi200.png
A  +---data/flags/italy/blurred_it-lat200.png
A  +---data/flags/italy/blurred_it-mar200.png
A  +---data/flags/italy/blurred_it-mol200.png
A  +---data/flags/italy/blurred_it-pug200.png
A  +---data/flags/italy/blurred_it-ven200.png
M  +1-0data/flags/norway/CMakeLists.txt
A  +---data/flags/norway/blurred_oslo.png
M  +5-1data/flags/peru/CMakeLists.txt
A  +---data/flags/peru/blurred_amazonas.png
A  +---data/flags/peru/blurred_ancash.png
A  +---data/flags/peru/blurred_san_martin.png
A  +---data/flags/peru/blurred_tacna.png
M  +18   -0data/flags/portugal/CMakeLists.txt
A  +---data/flags/portugal/blurred_aveiro.png
A  +---data/flags/portugal/blurred_beja.png
A  +---data/flags/portugal/blurred_braga.png
A  +---data/flags/portugal/blurred_braganca.png
A  +---data/flags/portugal/blurred_castelo_branco.png
A  +---data/flags/portugal/blurred_coimbra.png
A  +---data/flags/portugal/blurred_evora.png
A  +---data/flags/portugal/blurred_faro.png
A  +---data/flags/portugal/blurred_guarda.png
A  +---data/flags/portugal/blurred_leiria.png
A  +---data/flags/portugal/blurred_lisboa.png
A  +---data/flags/portugal/blurred_portalegre.png
A  +---data/flags/portugal/blurred_porto.png
A  +---data/flags/portugal/blurred_santarem.png
A  +---data/flags/portugal/blurred_setubal.png
A  +---data/flags/portugal/blurred_viana_do_castelo.png
A  +---data/flags/portugal/blurred_vila_real.png
A  +---data/flags/portugal/blurred_viseu.png
M  +2-1data/flags/ukraine/CMakeLists.txt
A  +---data/flags/ukraine/blurred_Cherkasy.png
M  +26   -0data/flags/usa/CMakeLists.txt
A  +---data/flags/usa/blurred_usa_arkansas.png
A  +---data/flags/usa/blurred_usa_california.png
A  +---data/flags/usa/blurred_usa_florida.png
A  +---data/flags/usa/blurred_usa_idaho.png
A  +---data/flags/usa/blurred_usa_illinois.png
A  +---data/flags/usa/blurred_usa_iowa.png
A  +---data/flags/usa/blurred_usa_kansas.png
A  +---data/flags/usa/blurred_usa_kentucky.png
A  +---data/flags/usa/blurred_usa_maine.png
A  +---data/flags/usa/blurred_usa_minnesota.png
A  +---data/flags/usa/blurred_usa_montana.png
A  +---data/flags/usa/blurred_usa_nebraska.png
A  +---data/flags/usa/blurred_usa_nevada.png
A  +---data/flags/usa/blurred_usa_new_hampshire.png
A  +---data/flags/usa/blurred_usa_north_carolina.png
A  +---data/flags/usa/blurred_usa_north_dakota.png
A  +---data/flags/usa/blurred_usa_oklahoma.png
A  +---data/flags/usa/blurred_usa_oregon.png
A  +---data/flags/usa/blurred_usa_south_dakota.png
A  +---data/flags/usa/blurred_usa_utah.png
A  +---data/flags/usa/blurred_usa_vermont.png
A  +---data/flags/usa/blurred_usa_virginia.png
A  +---

[kgeography] [Bug 457725] Blurring out the answer from flags

2022-09-10 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=457725

Bug Janitor Service  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #4 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/education/kgeography/-/merge_requests/29

-- 
You are receiving this mail because:
You are watching all bug changes.

[kgeography] [Bug 457725] Blurring out the answer from flags

2022-09-09 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=457725

--- Comment #3 from Albert Astals Cid  ---
Go ahead!

-- 
You are receiving this mail because:
You are watching all bug changes.

[kgeography] [Bug 457725] Blurring out the answer from flags

2022-09-09 Thread Vlad Rakhmanin
https://bugs.kde.org/show_bug.cgi?id=457725

Vlad Rakhmanin  changed:

   What|Removed |Added

 CC||vladimir.rakhmanin@ucdconne
   ||ct.ie

--- Comment #2 from Vlad Rakhmanin  ---
(In reply to Albert Astals Cid from comment #1)
> Simple approach would be to expand the xml with a flag that gets shown when
> asking about the flag (in opposition to the browse mode). Then we can add
> partially blurred versions for the flags that need them.
> 
> I personally don't have the time to implement this but would be happy to
> help/review if someone wants to give it a go.

Hi there, I am currently looking to get involved with some junior jobs and
would be happy to give this one a go - would that be ok?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kgeography] [Bug 457725] Blurring out the answer from flags

2022-08-10 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=457725

Albert Astals Cid  changed:

   What|Removed |Added

   Keywords||junior-jobs
 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1

--- Comment #1 from Albert Astals Cid  ---
Simple approach would be to expand the xml with a flag that gets shown when
asking about the flag (in opposition to the browse mode). Then we can add
partially blurred versions for the flags that need them.

I personally don't have the time to implement this but would be happy to
help/review if someone wants to give it a go.

-- 
You are receiving this mail because:
You are watching all bug changes.