mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Merge branch 'master' into feature/webgl
This commit is contained in:
commit
c96f5d7bcf
5 changed files with 100 additions and 100 deletions
|
@ -53,10 +53,6 @@
|
||||||
<script>
|
<script>
|
||||||
window.userObject = "userObjectTag";
|
window.userObject = "userObjectTag";
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
|
||||||
var _bftn_options = { animation: 'banner' }
|
|
||||||
</script>
|
|
||||||
<script src="//widget.battleforthenet.com/widget.min.js" async></script>
|
|
||||||
<script>require('initialize');</script>
|
<script>require('initialize');</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -457,12 +457,12 @@ module.exports = Surface = class Surface extends CocoClass
|
||||||
|
|
||||||
onMouseDown: (e) =>
|
onMouseDown: (e) =>
|
||||||
return if @disabled
|
return if @disabled
|
||||||
newPos = @camera.screenToCanvas({x: e.stageX, y: e.stageY})
|
cap = @camera.screenToCanvas({x: e.stageX, y: e.stageY})
|
||||||
# getObject(s)UnderPoint is broken, so we have to use the private method to get what we want
|
# getObject(s)UnderPoint is broken, so we have to use the private method to get what we want
|
||||||
onBackground = not @stage._getObjectsUnderPoint(newPos.x, newPos.y, null, true)
|
onBackground = not @stage._getObjectsUnderPoint(e.stageX, e.stageY, null, true)
|
||||||
|
|
||||||
worldPos = @camera.screenToWorld x: e.stageX, y: e.stageY
|
wop = @camera.screenToWorld x: e.stageX, y: e.stageY
|
||||||
event = onBackground: onBackground, x: e.stageX, y: e.stageY, originalEvent: e, worldPos: worldPos
|
event = onBackground: onBackground, x: e.stageX, y: e.stageY, originalEvent: e, worldPos: wop
|
||||||
Backbone.Mediator.publish 'surface:stage-mouse-down', event
|
Backbone.Mediator.publish 'surface:stage-mouse-down', event
|
||||||
Backbone.Mediator.publish 'tome:focus-editor', {}
|
Backbone.Mediator.publish 'tome:focus-editor', {}
|
||||||
|
|
||||||
|
|
|
@ -652,21 +652,21 @@ module.exports = nativeDescription: "español (ES)", englishDescription: "Spanis
|
||||||
why_paragraph_2_italic_caps: "¡NO MAMA, TENGO QUE TERMINAR EL NIVEL!"
|
why_paragraph_2_italic_caps: "¡NO MAMA, TENGO QUE TERMINAR EL NIVEL!"
|
||||||
why_paragraph_2_suffix: "Por eso Codecombat es multijugador, no un curso con lecciones \"gamificadas\" . No pararemos hasta que tú no puedas parar... pero esta vez, eso será buena señal."
|
why_paragraph_2_suffix: "Por eso Codecombat es multijugador, no un curso con lecciones \"gamificadas\" . No pararemos hasta que tú no puedas parar... pero esta vez, eso será buena señal."
|
||||||
why_paragraph_3: "Si vas a engancharte a algún juego, engánchate a este y conviértete en uno de los magos de la era tecnológica."
|
why_paragraph_3: "Si vas a engancharte a algún juego, engánchate a este y conviértete en uno de los magos de la era tecnológica."
|
||||||
# press_title: "Bloggers/Press"
|
press_title: "Blogueros/Prensa"
|
||||||
# press_paragraph_1_prefix: "Want to write about us? Feel free to download and use all of the resources included in our"
|
press_paragraph_1_prefix: "Quieres escribir sobre nosotros? Bajate y usa todos los recursos incluidos en nuestro"
|
||||||
# press_paragraph_1_link: "press packet"
|
press_paragraph_1_link: "paquete de prensa"
|
||||||
# press_paragraph_1_suffix: ". All logos and images may be used without contacting us directly."
|
press_paragraph_1_suffix: ". Todos los logos y las imagenes pueden ser usados sin necesidad de contactarnos directamente."
|
||||||
# team: "Team"
|
team: "Equipo"
|
||||||
# george_title: "CEO"
|
george_title: "CEO"
|
||||||
# george_blurb: "Businesser"
|
george_blurb: "Hombre de Negocios"
|
||||||
# scott_title: "Programmer"
|
scott_title: "Programador"
|
||||||
# scott_blurb: "Reasonable One"
|
scott_blurb: "Razonable"
|
||||||
# nick_title: "Programmer"
|
nick_title: "Programador"
|
||||||
# nick_blurb: "Motivation Guru"
|
nick_blurb: "Guru Motivacional"
|
||||||
# michael_title: "Programmer"
|
michael_title: "Programador"
|
||||||
# michael_blurb: "Sys Admin"
|
michael_blurb: "Administrador de Sistemas"
|
||||||
# matt_title: "Programmer"
|
matt_title: "Programador"
|
||||||
# matt_blurb: "Bicyclist"
|
matt_blurb: "Ciclista"
|
||||||
|
|
||||||
legal:
|
legal:
|
||||||
page_title: "Legal"
|
page_title: "Legal"
|
||||||
|
@ -878,7 +878,7 @@ module.exports = nativeDescription: "español (ES)", englishDescription: "Spanis
|
||||||
tournament_ended: "El torneo ha terminado"
|
tournament_ended: "El torneo ha terminado"
|
||||||
tournament_rules: "Reglas del Torneo"
|
tournament_rules: "Reglas del Torneo"
|
||||||
tournament_blurb: "Escribe codigo, recolecta oro, construye ejercitos, aplasta a los malos, gana premios, y sube en tu carrera en nuestro Torneo de la Avaricia con $40,000! Ver los detalles"
|
tournament_blurb: "Escribe codigo, recolecta oro, construye ejercitos, aplasta a los malos, gana premios, y sube en tu carrera en nuestro Torneo de la Avaricia con $40,000! Ver los detalles"
|
||||||
# tournament_blurb_criss_cross: "Win bids, construct paths, outwit opponents, grab gems, and upgrade your career in our Criss-Cross tournament! Check out the details"
|
tournament_blurb_criss_cross: "Gana pujas, construye caminos, aniquila a tus oponentes, recoge gemas, y mejora tu carrera en nuestro torneo Criss-Cross! Mira los detalles"
|
||||||
tournament_blurb_blog: "en nuestro blog"
|
tournament_blurb_blog: "en nuestro blog"
|
||||||
rules: "Reglas"
|
rules: "Reglas"
|
||||||
winners: "Ganadores"
|
winners: "Ganadores"
|
||||||
|
@ -896,7 +896,7 @@ module.exports = nativeDescription: "español (ES)", englishDescription: "Spanis
|
||||||
in_cash: "en dinero"
|
in_cash: "en dinero"
|
||||||
custom_wizard: "Personaliza tu Mago de CodeCombat"
|
custom_wizard: "Personaliza tu Mago de CodeCombat"
|
||||||
custom_avatar: "Personaliza tu avatar de CoceCombat"
|
custom_avatar: "Personaliza tu avatar de CoceCombat"
|
||||||
# heap: "for six months of \"Startup\" access"
|
heap: "Por seis meses de acceso \"Startup\""
|
||||||
credits: "creditos"
|
credits: "creditos"
|
||||||
one_month_coupon: "cupon: elige entre Rails o HTML"
|
one_month_coupon: "cupon: elige entre Rails o HTML"
|
||||||
one_month_discount: "descuento del 30%: elige entre Rails o HTML"
|
one_month_discount: "descuento del 30%: elige entre Rails o HTML"
|
||||||
|
@ -946,61 +946,61 @@ module.exports = nativeDescription: "español (ES)", englishDescription: "Spanis
|
||||||
files: "Archivos"
|
files: "Archivos"
|
||||||
top_simulators: "Top simuladores"
|
top_simulators: "Top simuladores"
|
||||||
source_document: "Documento fuente"
|
source_document: "Documento fuente"
|
||||||
# document: "Document"
|
document: "Documento"
|
||||||
# sprite_sheet: "Sprite Sheet"
|
# sprite_sheet: "Sprite Sheet"
|
||||||
# employers: "Employers"
|
employers: "Empleados"
|
||||||
# candidates: "Candidates"
|
candidates: "Candidatos"
|
||||||
# candidate_sessions: "Candidate Sessions"
|
candidate_sessions: "Sesiones de Candidato"
|
||||||
# user_remark: "User Remark"
|
# user_remark: "User Remark"
|
||||||
# user_remarks: "User Remarks"
|
# user_remarks: "User Remarks"
|
||||||
# versions: "Versions"
|
versions: "Versiones"
|
||||||
# items: "Items"
|
items: "Objetos"
|
||||||
# wizard: "Wizard"
|
wizard: "Mago"
|
||||||
# achievement: "Achievement"
|
achievement: "Logro"
|
||||||
# clas: "CLAs"
|
# clas: "CLAs"
|
||||||
# play_counts: "Play Counts"
|
play_counts: "Contador de Juegos"
|
||||||
# feedback: "Feedback"
|
# feedback: "Feedback"
|
||||||
|
|
||||||
delta:
|
delta:
|
||||||
added: "Añadido"
|
added: "Añadido"
|
||||||
modified: "Modificado"
|
modified: "Modificado"
|
||||||
deleted: "Eliminado"
|
deleted: "Eliminado"
|
||||||
# moved_index: "Moved Index"
|
moved_index: "Indice Movido"
|
||||||
# text_diff: "Text Diff"
|
# text_diff: "Text Diff"
|
||||||
# merge_conflict_with: "MERGE CONFLICT WITH"
|
# merge_conflict_with: "MERGE CONFLICT WITH"
|
||||||
no_changes: "Sin Cambios"
|
no_changes: "Sin Cambios"
|
||||||
|
|
||||||
# user:
|
user:
|
||||||
# stats: "Stats"
|
stats: "Estadisticas"
|
||||||
# singleplayer_title: "Singleplayer Levels"
|
singleplayer_title: "Niveles Individuales"
|
||||||
# multiplayer_title: "Multiplayer Levels"
|
multiplayer_title: "Niveles Multijugador"
|
||||||
# achievements_title: "Achievements"
|
achievements_title: "Logros"
|
||||||
# last_played: "Last Played"
|
last_played: "Ultimo Jugado"
|
||||||
# status: "Status"
|
status: "Estatus"
|
||||||
# status_completed: "Completed"
|
status_completed: "Completado"
|
||||||
# status_unfinished: "Unfinished"
|
status_unfinished: "Sin Terminar"
|
||||||
# no_singleplayer: "No Singleplayer games played yet."
|
no_singleplayer: "No has jugado ningun nivel individual todavia."
|
||||||
# no_multiplayer: "No Multiplayer games played yet."
|
no_multiplayer: "No has jugado ningun nivel multijugador todavia."
|
||||||
# no_achievements: "No Achievements earned yet."
|
no_achievements: "No has alcanzado ningun logro todavia."
|
||||||
# favorite_prefix: "Favorite language is "
|
favorite_prefix: "Favorite language is "
|
||||||
# favorite_postfix: "."
|
favorite_postfix: "."
|
||||||
|
|
||||||
# achievements:
|
achievements:
|
||||||
# last_earned: "Last Earned"
|
last_earned: "Ganado la ultima vez"
|
||||||
# amount_achieved: "Amount"
|
amount_achieved: "Cantidad"
|
||||||
# achievement: "Achievement"
|
achievement: "Logro"
|
||||||
# category_contributor: "Contributor"
|
category_contributor: "Contribuidor"
|
||||||
# category_miscellaneous: "Miscellaneous"
|
category_miscellaneous: "Miscelanea"
|
||||||
# category_levels: "Levels"
|
category_levels: "Niveles"
|
||||||
# category_undefined: "Uncategorized"
|
category_undefined: "Sin categorizar"
|
||||||
# current_xp_prefix: ""
|
current_xp_prefix: ""
|
||||||
# current_xp_postfix: " in total"
|
current_xp_postfix: " en total"
|
||||||
# new_xp_prefix: ""
|
new_xp_prefix: ""
|
||||||
# new_xp_postfix: " earned"
|
new_xp_postfix: " ganado"
|
||||||
# left_xp_prefix: ""
|
left_xp_prefix: ""
|
||||||
# left_xp_infix: " until level "
|
left_xp_infix: " hasta el nivel"
|
||||||
# left_xp_postfix: ""
|
left_xp_postfix: ""
|
||||||
|
|
||||||
# account:
|
account:
|
||||||
# recently_played: "Recently Played"
|
recently_played: "Jugado Recientemente"
|
||||||
# no_recent_games: "No games played during the past two weeks."
|
no_recent_games: "No he jugado juegos en las ultimas dos semanas."
|
||||||
|
|
|
@ -79,7 +79,7 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
|
||||||
recover:
|
recover:
|
||||||
recover_account_title: "Recuperar conta"
|
recover_account_title: "Recuperar conta"
|
||||||
send_password: "Recuperar senha"
|
send_password: "Recuperar senha"
|
||||||
# recovery_sent: "Recovery email sent."
|
recovery_sent: "Email de recuperação enviado."
|
||||||
|
|
||||||
signup:
|
signup:
|
||||||
create_account_title: "Criar conta para salvar progresso"
|
create_account_title: "Criar conta para salvar progresso"
|
||||||
|
@ -91,7 +91,7 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
|
||||||
sign_up: "Criar conta"
|
sign_up: "Criar conta"
|
||||||
log_in: "Entre com a senha"
|
log_in: "Entre com a senha"
|
||||||
social_signup: "Ou, você pode fazer login pelo Facebook ou G+:"
|
social_signup: "Ou, você pode fazer login pelo Facebook ou G+:"
|
||||||
# required: "You need to log in before you can go that way."
|
required: "Você precisa fazer login antes de ir por esse caminho."
|
||||||
|
|
||||||
home:
|
home:
|
||||||
slogan: "Aprenda a programar enquanto se diverte com um jogo."
|
slogan: "Aprenda a programar enquanto se diverte com um jogo."
|
||||||
|
@ -106,10 +106,10 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
|
||||||
for_developers: "Para Desenvolvedores"
|
for_developers: "Para Desenvolvedores"
|
||||||
javascript_blurb: "A linguagem da web. Ótima para criação de websites, web app, jogos HTML5, e servidores"
|
javascript_blurb: "A linguagem da web. Ótima para criação de websites, web app, jogos HTML5, e servidores"
|
||||||
python_blurb: "Simples mas poderosa, Python é uma linguagem de programação de uso geral"
|
python_blurb: "Simples mas poderosa, Python é uma linguagem de programação de uso geral"
|
||||||
# coffeescript_blurb: "Nicer JavaScript syntax."
|
coffeescript_blurb: "Sintaxe de JavaScript mais legal."
|
||||||
# clojure_blurb: "A modern Lisp."
|
clojure_blurb: "Um Lisp moderno."
|
||||||
# lua_blurb: "Game scripting language."
|
lua_blurb: "Linguagem de script para jogos."
|
||||||
# io_blurb: "Simple but obscure."
|
io_blurb: "Simples mas obscura."
|
||||||
|
|
||||||
play:
|
play:
|
||||||
choose_your_level: "Escolha seu estágio"
|
choose_your_level: "Escolha seu estágio"
|
||||||
|
@ -129,7 +129,7 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
|
||||||
level_difficulty: "Dificuldade: "
|
level_difficulty: "Dificuldade: "
|
||||||
play_as: "Jogar Como "
|
play_as: "Jogar Como "
|
||||||
spectate: "Assistir"
|
spectate: "Assistir"
|
||||||
# players: "players"
|
players: "jogadores"
|
||||||
# hours_played: "hours played"
|
# hours_played: "hours played"
|
||||||
|
|
||||||
contact:
|
contact:
|
||||||
|
@ -184,14 +184,14 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
|
||||||
new_password: "Nova Senha"
|
new_password: "Nova Senha"
|
||||||
new_password_verify: "Confirmação"
|
new_password_verify: "Confirmação"
|
||||||
email_subscriptions: "Assinaturas para Notícias por Email"
|
email_subscriptions: "Assinaturas para Notícias por Email"
|
||||||
# email_subscriptions_none: "No Email Subscriptions."
|
email_subscriptions_none: "Sem Assinaturas de Email"
|
||||||
email_announcements: "Notícias"
|
email_announcements: "Notícias"
|
||||||
email_announcements_description: "Receba emails com as últimas notícias e desenvolvimentos do CodeCombat."
|
email_announcements_description: "Receba emails com as últimas notícias e desenvolvimentos do CodeCombat."
|
||||||
email_notifications: "Notificações"
|
email_notifications: "Notificações"
|
||||||
# email_notifications_summary: "Controls for personalized, automatic email notifications related to your CodeCombat activity."
|
# email_notifications_summary: "Controls for personalized, automatic email notifications related to your CodeCombat activity."
|
||||||
# email_any_notes: "Any Notifications"
|
# email_any_notes: "Any Notifications"
|
||||||
# email_any_notes_description: "Disable to stop all activity notification emails."
|
email_any_notes_description: "Desabilitar todas as atividades de notificação por email."
|
||||||
# email_news: "News"
|
email_news: "Notícias"
|
||||||
email_recruit_notes: "Oportunidades de emprego"
|
email_recruit_notes: "Oportunidades de emprego"
|
||||||
email_recruit_notes_description: "Se você jogar muito bem, nós podemos lhe contactar para lhe oferecer um emprego (melhor)"
|
email_recruit_notes_description: "Se você jogar muito bem, nós podemos lhe contactar para lhe oferecer um emprego (melhor)"
|
||||||
contributor_emails: "Emails para as Classes de Contribuidores"
|
contributor_emails: "Emails para as Classes de Contribuidores"
|
||||||
|
@ -202,7 +202,7 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
|
||||||
error_saving: "Erro no salvamento"
|
error_saving: "Erro no salvamento"
|
||||||
saved: "Alterações Salvas"
|
saved: "Alterações Salvas"
|
||||||
password_mismatch: "As senhas não estão iguais"
|
password_mismatch: "As senhas não estão iguais"
|
||||||
# password_repeat: "Please repeat your password."
|
password_repeat: "Por favor repita sua senha."
|
||||||
job_profile: "Perfil de trabalho"
|
job_profile: "Perfil de trabalho"
|
||||||
# job_profile_approved: "Your job profile has been approved by CodeCombat. Employers will be able to see it until you either mark it inactive or it has not been changed for four weeks."
|
# job_profile_approved: "Your job profile has been approved by CodeCombat. Employers will be able to see it until you either mark it inactive or it has not been changed for four weeks."
|
||||||
# job_profile_explanation: "Hi! Fill this out, and we will get in touch about finding you a software developer job."
|
# job_profile_explanation: "Hi! Fill this out, and we will get in touch about finding you a software developer job."
|
||||||
|
@ -210,9 +210,9 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
|
||||||
view_profile: "Visualizar seu perfil"
|
view_profile: "Visualizar seu perfil"
|
||||||
|
|
||||||
account_profile:
|
account_profile:
|
||||||
# settings: "Settings"
|
settings: "Configurações"
|
||||||
# edit_profile: "Edit Profile"
|
edit_profile: "Edite seu perfil"
|
||||||
# done_editing: "Done Editing"
|
done_editing: "Edição Feita"
|
||||||
profile_for_prefix: "Perfil de "
|
profile_for_prefix: "Perfil de "
|
||||||
profile_for_suffix: ""
|
profile_for_suffix: ""
|
||||||
# featured: "Featured"
|
# featured: "Featured"
|
||||||
|
@ -237,18 +237,18 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
|
||||||
# next_photo: "add an optional professional photo."
|
# next_photo: "add an optional professional photo."
|
||||||
# next_active: "mark yourself open to offers to show up in searches."
|
# next_active: "mark yourself open to offers to show up in searches."
|
||||||
example_blog: "Blog"
|
example_blog: "Blog"
|
||||||
# example_personal_site: "Personal Site"
|
example_personal_site: "Site Pessoal"
|
||||||
# links_header: "Personal Links"
|
# links_header: "Personal Links"
|
||||||
# links_blurb: "Link any other sites or profiles you want to highlight, like your GitHub, your LinkedIn, or your blog."
|
# links_blurb: "Link any other sites or profiles you want to highlight, like your GitHub, your LinkedIn, or your blog."
|
||||||
# links_name: "Link Name"
|
# links_name: "Link Name"
|
||||||
# links_name_help: "What are you linking to?"
|
# links_name_help: "What are you linking to?"
|
||||||
# links_link_blurb: "Link URL"
|
# links_link_blurb: "Link URL"
|
||||||
# basics_header: "Update basic info"
|
# basics_header: "Update basic info"
|
||||||
# basics_active: "Open to Offers"
|
basics_active: "Aberto para Ofertas"
|
||||||
# basics_active_help: "Want interview offers right now?"
|
# basics_active_help: "Want interview offers right now?"
|
||||||
# basics_job_title: "Desired Job Title"
|
# basics_job_title: "Desired Job Title"
|
||||||
# basics_job_title_help: "What role are you looking for?"
|
# basics_job_title_help: "What role are you looking for?"
|
||||||
# basics_city: "City"
|
basics_city: "Cidade"
|
||||||
# basics_city_help: "City you want to work in (or live in now)."
|
# basics_city_help: "City you want to work in (or live in now)."
|
||||||
basics_country: "País"
|
basics_country: "País"
|
||||||
# basics_country_help: "Country you want to work in (or live in now)."
|
# basics_country_help: "Country you want to work in (or live in now)."
|
||||||
|
@ -283,35 +283,35 @@ module.exports = nativeDescription: "português do Brasil", englishDescription:
|
||||||
# work_employer_help: "Name of your employer."
|
# work_employer_help: "Name of your employer."
|
||||||
# work_role: "Job Title"
|
# work_role: "Job Title"
|
||||||
# work_role_help: "What was your job title or role?"
|
# work_role_help: "What was your job title or role?"
|
||||||
# work_duration: "Duration"
|
work_duration: "Duração"
|
||||||
# work_duration_help: "When did you hold this gig?"
|
# work_duration_help: "When did you hold this gig?"
|
||||||
# work_description: "Description"
|
work_description: "Descrição"
|
||||||
# work_description_help: "What did you do there? (140 chars; optional)"
|
# work_description_help: "What did you do there? (140 chars; optional)"
|
||||||
education: "Educação"
|
education: "Educação"
|
||||||
# education_header: "Recount your academic ordeals"
|
# education_header: "Recount your academic ordeals"
|
||||||
# education_blurb: "List your academic ordeals."
|
# education_blurb: "List your academic ordeals."
|
||||||
education_school: "Escola"
|
education_school: "Escola"
|
||||||
# education_school_help: "Name of your school."
|
education_school_help: "Nome da sua escola."
|
||||||
# education_degree: "Degree"
|
education_degree: "Grau"
|
||||||
# education_degree_help: "What was your degree and field of study?"
|
# education_degree_help: "What was your degree and field of study?"
|
||||||
# education_duration: "Dates"
|
education_duration: "Datas"
|
||||||
# education_duration_help: "When?"
|
education_duration_help: "Quando?"
|
||||||
# education_description: "Description"
|
education_description: "Descrição"
|
||||||
# education_description_help: "Highlight anything about this educational experience. (140 chars; optional)"
|
# education_description_help: "Highlight anything about this educational experience. (140 chars; optional)"
|
||||||
our_notes: "Nossas notas"
|
our_notes: "Nossas notas"
|
||||||
# remarks: "Remarks"
|
# remarks: "Remarks"
|
||||||
projects: "Projetos"
|
projects: "Projetos"
|
||||||
# projects_header: "Add 3 projects"
|
projects_header: "Adicione 3 projetos"
|
||||||
# projects_header_2: "Projects (Top 3)"
|
projects_header_2: "Projetos (Top 3)"
|
||||||
# projects_blurb: "Highlight your projects to amaze employers."
|
projects_blurb: "Destaque seus projetos para impressionar os empregadores."
|
||||||
# project_name: "Project Name"
|
project_name: "Nome do Projeto"
|
||||||
# project_name_help: "What was the project called?"
|
# project_name_help: "What was the project called?"
|
||||||
# project_description: "Description"
|
project_description: "Descrição"
|
||||||
# project_description_help: "Briefly describe the project."
|
# project_description_help: "Briefly describe the project."
|
||||||
# project_picture: "Picture"
|
project_picture: "Imagem"
|
||||||
# project_picture_help: "Upload a 230x115px or larger image showing off the project."
|
# project_picture_help: "Upload a 230x115px or larger image showing off the project."
|
||||||
# project_link: "Link"
|
project_link: "Link"
|
||||||
# project_link_help: "Link to the project."
|
project_link_help: "Link para o projeto."
|
||||||
# player_code: "Player Code"
|
# player_code: "Player Code"
|
||||||
|
|
||||||
# employers:
|
# employers:
|
||||||
|
|
|
@ -33,7 +33,7 @@ module.exports = class AddThangsView extends CocoView
|
||||||
models = @supermodel.getModels(ThangType)
|
models = @supermodel.getModels(ThangType)
|
||||||
|
|
||||||
thangTypes = _.uniq models, false, (thangType) -> thangType.get('original')
|
thangTypes = _.uniq models, false, (thangType) -> thangType.get('original')
|
||||||
thangTypes = _.reject thangTypes, (thangType) -> thangType.get('kind') is 'Mark'
|
thangTypes = _.reject thangTypes, (thangType) -> thangType.get('kind') in ['Mark', 'Item']
|
||||||
groupMap = {}
|
groupMap = {}
|
||||||
for thangType in thangTypes
|
for thangType in thangTypes
|
||||||
kind = thangType.get('kind')
|
kind = thangType.get('kind')
|
||||||
|
@ -49,6 +49,10 @@ module.exports = class AddThangsView extends CocoView
|
||||||
thangs: someThangTypes
|
thangs: someThangTypes
|
||||||
groups.push group
|
groups.push group
|
||||||
|
|
||||||
|
groups = _.sortBy groups, (group) ->
|
||||||
|
index = ['Wall', 'Floor', 'Unit', 'Doodad', 'Misc'].indexOf group.name
|
||||||
|
if index is -1 then 9001 else index
|
||||||
|
|
||||||
context.thangTypes = thangTypes
|
context.thangTypes = thangTypes
|
||||||
context.groups = groups
|
context.groups = groups
|
||||||
context
|
context
|
||||||
|
|
Loading…
Reference in a new issue